@sudoplatform/sudo-user
    Preparing search index...

    Class AmplifyClient

    Convenience wrapper for GraphQL API using Amplify SDK.

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Performs GraphQL mutation operation.

      Type Parameters

      • T

      Parameters

      • options: { authToken?: string; mutation: string | DocumentNode; variables?: any }

        mutation document, mutation variables and authentication token (optional). If authentication token is provided then the token provided via the constructor will be ignored.

      Returns Promise<GraphQLResult<T>>

      mutation result.

    • Performs GraphQL query operation.

      Type Parameters

      • T

      Parameters

      • options: { authToken?: string; query: string | DocumentNode; variables?: any }

        query document, query variables and authentication token (optional). If authentication token is provided then the token provided via the constructor will be ignored.

      Returns Promise<GraphQLResult<T>>

      query result.

    • Performs GraphQL subscription operation.

      Type Parameters

      • T

      Parameters

      • options: { authToken?: string; subscription: string | DocumentNode; variables?: any }

        subscription document, subscription variables and authentication token (optional). If authentication token is provided then the token provided via the constructor will be ignored.

      Returns Promise<Observable<GraphQLResult<T>>>

      observable for receiving subscription notifications.