SunnyGraphQLModel class

Implemented types
Available extensions

Constructors

SunnyGraphQLModel.new({required String className, required Map<String, String> mixinMap, required Map<String, String> typeMap, required List<RegExp> includes, required List<RegExp> excludes, required DocumentNode doc, required Map<RegExp, String> typeNameMap, required Map<RegExp, String> fieldNameMap, NameMapper mapTypeName = echo, NameMapper mapFieldName = echo})

Properties

className String
final
declaredEnumTypes Iterable<EnumTypeDefinitionNode>

Available on GraphQLScanResult, provided by the GraphQLScanResultExt extension

no setter
declaredInputTypes Iterable<InputObjectTypeDefinitionNode>

Available on GraphQLScanResult, provided by the GraphQLScanResultExt extension

no setter
declaredInterfaceTypes Iterable<InterfaceTypeDefinitionNode>

Available on GraphQLScanResult, provided by the GraphQLScanResultExt extension

no setter
declaredObjectTypes Iterable<ObjectTypeDefinitionNode>

Available on GraphQLScanResult, provided by the GraphQLScanResultExt extension

no setter
doc → DocumentNode
final
done Set<String>
final
enumTypes Map<String, EnumTypeDefinitionNode>
final
excludes List<RegExp>
final
extraInterfaces Map<String, Set<TypeNode>>
final
fieldNameMap Map<RegExp, String>
final
fragmentDepends FragmentDependencies
final
fragments Map<String, FragmentDefinitionNode>
final
hashCode int
The hash code for this object.
no setterinherited
includes List<RegExp>
final
inputTypes Map<String, InputObjectTypeDefinitionNode>
final
interfaceTypes Map<String, InterfaceTypeDefinitionNode>
final
joinRecords Set<String>
final
log → Logger
no setteroverride
mapFieldName NameMapper
final
mapTypeName NameMapper
final
mixinMap Map<String, String>
final
mutation Map<String, FieldDefinitionNode>
final
nestedFragments Map<String, String>
final
objectTypes Map<String, ObjectTypeDefinitionNode>
final
query Map<String, FieldDefinitionNode>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subqueries Map<String, Map<String, GraphSubQuery>>
final
subQuery Map<String, FieldDefinitionNode>
final
typedefs Map<String, String>
final
typeMap Map<String, String>
final
typeNameMap Map<RegExp, String>
final
unionTypes Map<String, UnionTypeDefinitionNode>
final

Methods

addAllModelApis(CodeBuilder code, {ClassSnippetGenerator? extraGenerator, ClassSnippetGenerator? inputGenerator}) → void

Available on GraphQLScanResult, provided by the GraphScanSharedBuilder extension

addAllModels(CodeBuilder code, {ClassSnippetGenerator? extraGenerator, ClassSnippetGenerator? inputGenerator}) → void

Available on GraphQLScanResult, provided by the GraphScanSharedBuilder extension

addDefinition(Node? type, {bool forceInclude = true}) → void
addFragment(Node? node, [List<String> from = const []]) → void
addInputType(InputObjectTypeDefinitionNode def) → void
addInterface(InterfaceTypeDefinitionNode def) → void
addMutation(FieldDefinitionNode def) → void
addObjectType(ObjectTypeDefinitionNode def) → void
addQuery(FieldDefinitionNode def) → void
addType(TypeNode node, {bool forceInclude = true, required String? parentType}) → void
checkDone(String name) bool
fieldName(String fieldName) String
override
getExtraInterfaces(String type) Iterable<TypeNode>
override
getMixin(String type) String?
override
isIncluded(String name) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCode() CodeBuilder
toString() String
A string representation of this object.
inherited
typeName(String typeName) String
override

Operators

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

Static Methods

initFromAnnotation(Element element, ConstantReader annotation) Future<SunnyGraphQLModel>