Skip to content

arg with null should turn to defaultValue or stay null? #210

Closed
@jardakotesovec

Description

@jardakotesovec

Seems that graphql-js treats args that are undefined (not present in json) and which are null (null value in json) the same way. Which is generally fine.

But I have situation where I have nullable field with defaultValue and I expected that if I explicitly send name: null I will get args.name = null and not the defaultValue, which is graphql-js behavior.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions