• Executes a graphQL query against the API.

    Example

    This examples shows how to retrieve the current identity of the caller

    import { Graphql,Query,SelfQuery, Identity  } from '@tokens-studio/sdk';
    const response = await Graphql.exec<SelfQuery>({ query:Query.raw.self});
    const identity = response.data?.self as Identity;

    Type Parameters

    • T

    Parameters

    • input: GraphQLOptions

    Returns Promise<GraphQLResult<T>>

Generated using TypeDoc