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

[clientAuth] [↔ GraphQLClient] : Client Auth for handling authenticated request. ::: features getter/setter pair :::

[clientNonAuth] [↔ GraphQLClient] : Client Auth for handling non-authenticated request. ::: features getter/setter pair :::

[hashCode] [→ int] : The hash code for this object. ::: features no setterinherited :::

[noData] [↔ QueryResult[<[Object?]>]] : when result has no data and null. ::: features getter/setter pair :::

[runtimeType] [→ Type] : A representation of the runtime type of the object. ::: features no setterinherited :::

Methods

[fetchOrgById][([[String] id]) [→ Future] ] : This function fetch the organization using the id passed.

[gqlAuthMutation][([[String] mutation, ) [→ Future[<[QueryResult[<[Object?]>]]>]] ] : This function is used to run the graph-ql mutation for authenticated user.

[gqlAuthQuery][([[String] query, ) [→ Future[<[QueryResult[<[Object?]>]]>]] ] : This function is used to run the graph-ql query for authentication.

[gqlNonAuthMutation][([[String] mutation, ) [→ Future[<[QueryResult[<[Object?]>]]>]] ] : This function is used to run the graph-ql mutation to authenticate the non signed-in user.

[gqlNonAuthQuery][([[String] query, ) [→ Future[<[QueryResult[<[Object?]>]]>]] ] : This function is used to run the graph-ql query for the non signed-in user.

init [→ void ] : Initialization function.

initClientNonAuth [→ void ] : Initializes clientNonAuth function.

[noSuchMethod][([[Invocation] invocation]) → dynamic ] : Invoked when a nonexistent method or property is accessed. ::: features 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. ::: features inherited :::

Operators

[operator ==][([[Object] other]) [→ bool] ] : The equality operator. ::: features inherited :::

  1. talawa
  2. database_mutation_functions
  3. DataBaseMutationFunctions class
database_mutation_functions library