Skip to content

Allow detecting null #56

Closed as not planned
Closed as not planned
@davidgilbertson

Description

@davidgilbertson

I would like to able to assert that a field on an input is optional, but not nullable (so I can do a partial update of an entity). GraphQL has no such syntax so I was hoping I could use this dirctive for that.

Something like:

input UpdateUser {
  id: ID!
  username: String @contraint(notNull: true)
  password: String @contraint(notNull: true)
}

Is this possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions