TypePolicy class Null safety

Constructors

TypePolicy({Map<String, dynamic>? keyFields, bool queryType = false, bool mutationType = false, bool subscriptionType = false, Map<String, FieldPolicy> fields = const {}})

Properties

fields Map<String, FieldPolicy>
Allows defining FieldPolicys for this type.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
keyFields Map<String, dynamic>?
Allows defining the primary key fields for this type.
read / write
mutationType bool
Set to true if this type is the root Mutation in your schema.
read / write
queryType bool
Set to true if this type is the root Query in your schema.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
subscriptionType bool
Set to true if this type is the root Subscription in your schema.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited