Skip to content

Support nullable types in graphene #1356

Closed
@wyajunjun

Description

@wyajunjun

Is your feature request related to a problem? Please describe.
Do we have null type in graphene? The example, the default value of mode is null is not pass null value,

mutation{ insertModel(input:{ modelName: "model1" })
but some cases we need to pass null, the return error is "Syntax Error GraphQL (4:63) Unexpected Name "null"
mutation{ insertModel(input:{ modelName: "model1" mode: null })

Describe the solution you'd like
GraphQL supports null values, can graphene also support that? graphql/graphql-spec#83

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions