DataBaseMutationFunctions class
<p>DataBaseMutationFunctions class provides different services that are under the context of graphQL mutations and queries.</p> <p>Services include:</p> <ul> <li><code>encounteredExceptionOrError</code></li> <li><code>gqlAuthQuery</code></li> <li><code>gqlAuthMutation</code></li> <li><code>gqlNonAuthMutation</code></li> <li><code>gqlNonAuthQuery</code></li> <li><code>refreshAccessToken</code></li> <li><code>fetchOrgById</code></li> </ul>
Constructors
Properties
clientAuth ↔ GraphQLClient
Client Auth for handling authenticated request.
<span class="feature">read / write</span>
clientNonAuth ↔ GraphQLClient
Client Auth for handling non-authenticated request.
<span class="feature">read / write</span>
emailAccountPresent ↔ GraphQLError
Graphql error for handling.
<span class="feature">read / write</span>
hashCode → int
The hash code for this object.
<span class="feature">read-only</span><span class="feature">inherited</span>
memberRequestExist ↔ GraphQLError
Graphql error for handling.
<span class="feature">read / write</span>
notifFeatureNotInstalled ↔ GraphQLError
Graphql error for handling.
<span class="feature">read / write</span>
organizationNotFound ↔ GraphQLError
Graphql error for handling.
<span class="feature">read / write</span>
refreshAccessTokenExpiredException ↔ GraphQLError
Graphql error for handling.
<span class="feature">read / write</span>
runtimeType → Type
A representation of the runtime type of the object.
<span class="feature">read-only</span><span class="feature">inherited</span>
userNotAuthenticated ↔ GraphQLError
Graphql error for handling.
<span class="feature">read / write</span>
userNotFound ↔ GraphQLError
Graphql error for handling.
<span class="feature">read / write</span>
wrongCredentials ↔ GraphQLError
Graphql error for handling.
<span class="feature">read / write</span>
Methods
encounteredExceptionOrError(OperationException exception, {bool showSnackBar = true}) bool?
This function is used to check if any exceptions or error encountered. The return type is <code>boolean</code>.
fetchOrgById(String id) Future
This function fetch the organization using the <code>id</code> 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.
<span class="feature">inherited</span>
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.
<span class="feature">inherited</span>
Operators
operator ==(Object other) bool
The equality operator.
<span class="feature">inherited</span>