DataBaseMutationFunctions class
DataBaseMutationFunctions class provides different services that are under the context of graphQL mutations and queries.
Services include:
encounteredExceptionOrError
gqlAuthQuery
gqlAuthMutation
gqlNonAuthMutation
gqlNonAuthQuery
refreshAccessToken
fetchOrgById
Constructors
Properties
clientAuth ↔ GraphQLClient
Client Auth for handling authenticated request.
read / write
clientNonAuth ↔ GraphQLClient
Client Auth for handling non-authenticated request.
read / write
emailAccountPresent ↔ GraphQLError
Graphql error for handling.
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
memberRequestExist ↔ GraphQLError
Graphql error for handling.
read / write
notifFeatureNotInstalled ↔ GraphQLError
Graphql error for handling.
read / write
organizationNotFound ↔ GraphQLError
Graphql error for handling.
read / write
refreshAccessTokenExpiredException ↔ GraphQLError
Graphql error for handling.
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
userNotAuthenticated ↔ GraphQLError
Graphql error for handling.
read / write
userNotFound ↔ GraphQLError
Graphql error for handling.
read / write
wrongCredentials ↔ GraphQLError
Graphql error for handling.
read / write
Methods
encounteredExceptionOrError(OperationException exception, {bool showSnackBar = true}) bool?
This function is used to check if any exceptions or error encountered. The return type is boolean
.
fetchOrgById(String id) Future
This function fetch the organization using the id
passed.
gqlAuthMutation(String mutation, {Map<String, dynamic>? variables}) Future
This function is used to run the graph-ql mutation for authenticated user.
gqlAuthQuery(String query, {Map<String, dynamic>? variables}) Future
This function is used to run the graph-ql query for authentication.
gqlNonAuthMutation(String mutation, {Map<String, dynamic>? variables, bool reCall = true}) Future
This function is used to run the graph-ql mutation to authenticate the non signed-in user.
gqlNonAuthQuery(String query, {Map<String, dynamic>? variables}) Future<QueryResult<Object?>?>
This function is used to run the graph-ql query for the non signed-in user.
init() void
initialization function.
noSuchMethod(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
inherited
refreshAccessToken(String refreshToken) Future<bool>
This function is used to refresh the Authenication token to access the application.
toString() String
A string representation of this object.
inherited
Operators
operator ==(Object other) bool
The equality operator.
inherited