• Executes a GraphQL query against the Business Platform Organizations API. Uses typed documents.

    Type Parameters

    • TResult
    • TVariables extends Variables

    Parameters

    • query:
          | TypedDocumentNode<TResult, TVariables>
          | TypedDocumentNode<TResult, Exact<{ [key: string]: never }>>

      GraphQL query to execute.

    • token: string

      Business Platform token.

    • organizationId: string

      Organization ID as a numeric value.

    • Optionalvariables: TVariables

      GraphQL variables to pass to the query.

    Returns Promise<TResult>

    The response of the query of generic type .