Skip to content

Jun2018 Spec: Null value support (2.9.5) #180

Open
@jlouis

Description

@jlouis

You can now input null values in the GraphQL specification. Interestingly, this is also part of the Oct2016 specificaton, but I don't recall seeing it there ever. In any case, we now need to make distinction between:

  • field
  • field(arg: null)

Which have semantic difference. Which in turn open up a can of worms on the server-side since there is more than one way to say "I have no value for this field". The upshot is that it can be used to mix UPDATE-like statements (RESTful PUTs) in an easier way since you can be explicit about the fields which were overridden. It also means non-null becomes far more important in the specifications going forward.

The addition luckily has no semantic change to existing parts of the system, but the tutorial documentation might have to change around this area as well, since it is updated.

We are currently not handling this at all, and it affects #171 and also #166, so it might be beneficial to implement this before tackling those two.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions