Skip to content

Consider renaming INVALID to Undefined #77

Closed
@Cito

Description

@Cito

GraphQL-Core-Next introduced the INVALID singleton to specify invalid and undefined values in places where GraphQL.js uses the global undefined which is only available in JavaScript. GraphQL-Core later introduced Undefined for the same purpose.

I'm inclined to use the same name Undefined in GraphQL-Core-Next, in order to maintain better backward compatibility with v2, and because it is more similar to GraphQL.js and maye more Python, since the None singleton, and False and True are also spelled as a capitalized words in Python. I would keep INVALID as an alias for backward compatibility with previous releases of v3.

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