Skip to main content

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

DataBaseMutationFunctions ()

Properties

clientAuthGraphQLClient

Client Auth for handling authenticated request.
<span class="feature">read / write</span>

clientNonAuthGraphQLClient

Client Auth for handling non-authenticated request.
<span class="feature">read / write</span>

emailAccountPresentGraphQLError

Graphql error for handling.
<span class="feature">read / write</span>

hashCodeint

The hash code for this object.
<span class="feature">read-only</span><span class="feature">inherited</span>

memberRequestExistGraphQLError

Graphql error for handling.
<span class="feature">read / write</span>

notifFeatureNotInstalledGraphQLError

Graphql error for handling.
<span class="feature">read / write</span>

organizationNotFoundGraphQLError

Graphql error for handling.
<span class="feature">read / write</span>

refreshAccessTokenExpiredExceptionGraphQLError

Graphql error for handling.
<span class="feature">read / write</span>

runtimeTypeType

A representation of the runtime type of the object.
<span class="feature">read-only</span><span class="feature">inherited</span>

userNotAuthenticatedGraphQLError

Graphql error for handling.
<span class="feature">read / write</span>

userNotFoundGraphQLError

Graphql error for handling.
<span class="feature">read / write</span>

wrongCredentialsGraphQLError

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>