GqlBuilder class

Builds GraphQL mutations for models following the GraphQLCRUD specification{@link https://graphqlcrud.org/}

If function receive modelFields it uses as default return fields

If function receive modelFragment it uses as return fields

Constructors

GqlBuilder({List<String?>? modelFields, String? modelFragment, required String modelName})

Properties

createGqlStr String
no setter
findGqlStr String
no setter
getGqlStr String
no setter
hashCode int
The hash code for this object.
no setterinherited
modelName String
final
pluralModelName String
latefinal
removeGqlStr String
no setter
returnFields String
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscribeDeletedGqlStr String
no setter
subscribeNewGqlStr String
no setter
subscribeUpdatedGqlStr String
no setter
updateGqlStr String
no setter

Methods

getByOperationType({required DefaultGqlOperationType operationType}) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFields({required String gqlFragment}) String
The function removes all outside {} from gql and returns clear string
toString() String
A string representation of this object.
inherited

Operators

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