Skip to content

Handle GraphQL Non-null wrappers in tests and implementation #48

@shalarewicz

Description

@shalarewicz

GraphQLNonNull types can wrap any GraphQLInputType. We should add tests and update buildTypeWeights and complexity analysis to ensure both incoming queries and schemas including non null types are accounted for and successfully parsed.

Per the GraphQL type def files GraphQLInputType can consist of the following types. Note the level of nesting that can occur.

GraphQLInputType = 
  | GraphQLScalarType
  | GraphQLEnumType
  | GraphQLInputObjectType
  | GraphQLList<GraphQLInputType>
  | GraphQLNonNull<
      | GraphQLScalarType
      | GraphQLEnumType
      | GraphQLInputObjectType
      | GraphQLList<GraphQLInputType>
 >;

Metadata

Metadata

Labels

bugSomething isn't workingtestingRequires tests to be created or modified

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions