TypePolicy class

Constructors

TypePolicy({List<String> keyFields, bool queryType: false, bool mutationType: false, bool subscriptionType: false, Map<String, FieldPolicy> fields})

Properties

fields Map<String, FieldPolicy>
Allows defining FieldPolicys for this type.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
keyFields List<String>
Allows defining the primary key fields for this type. [...]
read / write
mutationType bool
read / write
queryType bool
If your schema uses a custom __typename for any of the root Query, Mutation, and/or Subscription types (rare), set the corresponding field below to true to indicate that this type serves as that type.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
subscriptionType bool
read / write

Methods

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

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited