FieldDefinition class

Available extensions

Constructors

FieldDefinition.ofField(GraphQLScanResult model, FieldDefinitionNode node, {required String entityName})
FieldDefinition.ofInput(GraphQLScanResult model, InputValueDefinitionNode node, {required String entityName, bool isReadOnly = false, bool isFlattened = false, bool isId = false, bool isEager = false, String? eagerPrefix, bool isLazy = false, bool isAutogenerateId = false, bool isWriteOnly = false})

Properties

args List<InputValueDefinitionNode>
final
canCreate bool
no setter
canUpdate bool
no setter
dartTypeName String
final
eagerPrefix String?
final
entityName String
final
hashCode int
The hash code for this object.
no setterinherited
isAutogenerateId bool
final
isEager bool
final
isFlattened bool
final
isId bool
final
isLazy bool
final
isList bool
final
isNonNull bool
final
isNullable bool
no setter
isReadOnly bool
final
isRelationship bool
final
isWriteOnly bool
final
joinRecordType String?
no setter
mappedName String
no setter
model GraphQLScanResult
final
name String
final
nullableDartOrListTypeName String
no setter
nullableDartTypeName String
no setter
nullSafeType String
no setter
original → Node
final
relationship GraphQLRelation?
final
relationType String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
singularRefType String
The name of the related type of this entity, regardless of whether this is a list of singular
no setter
singularRelationType String
no setter
typeNode → TypeNode
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readExpression([String from = 'json']) → Expression

Available on FieldDefinition, provided by the FieldDefinitionCodeExt extension

relationRefAlias() String
relationRefType() String
relationSingularRefType() String
toParameter({bool isThis = false, bool named = true, bool forceOptional = false}) → Parameter

Available on FieldDefinition, provided by the FieldNodeToParam extension

toString() String
A string representation of this object.
override
writeExpression([String? source]) String

Available on FieldDefinition, provided by the FieldDefinitionCodeExt extension

Operators

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