Skip to main content

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

DataBaseMutationFunctions ()

Properties

clientAuthGraphQLClient

Client Auth for handling authenticated request.
read / write

clientNonAuthGraphQLClient

Client Auth for handling non-authenticated request.
read / write

emailAccountPresentGraphQLError

Graphql error for handling.
read / write

hashCodeint

The hash code for this object.
read-onlyinherited

memberRequestExistGraphQLError

Graphql error for handling.
read / write

notifFeatureNotInstalledGraphQLError

Graphql error for handling.
read / write

organizationNotFoundGraphQLError

Graphql error for handling.
read / write

refreshAccessTokenExpiredExceptionGraphQLError

Graphql error for handling.
read / write

runtimeTypeType

A representation of the runtime type of the object.
read-onlyinherited

userNotAuthenticatedGraphQLError

Graphql error for handling.
read / write

userNotFoundGraphQLError

Graphql error for handling.
read / write

wrongCredentialsGraphQLError

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