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

    Type Parameters

    • TResult

    Parameters

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

      GraphQL query to execute.

    • token: string

      Business Platform token.

    • organizationId: string

      Organization ID as a numeric value.

    • Optional variables: GraphQLVariables

      GraphQL variables to pass to the query.

    Returns Promise<TResult>

    The response of the query of generic type .