TypePolicy class

Constructors

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

Properties

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

Methods

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

Operators

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