GraphQLNonNull <T>
Implements
- GraphQLSchemaElement
Index
Constructors
constructor
Type parameters
Parameters
ofType: T
Returns GraphQLNonNull<T>
Properties
readonlyofType
Accessors
[toStringTag]
Returns string
Methods
toJSON
Returns string
toString
Returns string
Non-Null Type Wrapper
A non-null is a wrapping type which points to another type. Non-null types enforce that their values are never null and can ensure an error is raised if this ever occurs during a request. It is useful for fields which you can make a strong guarantee on non-nullability, for example usually the id field of a database row will never be null.
Example:
Note: the enforcement of non-nullability occurs within the executor.