Class SuiGraphQLClient<Queries>
Constructors
constructor
- new SuiGraphQLClient<
Queries extends
Record<
string,
GraphQLDocument<Record<string, unknown>, Record<string, unknown>>,
> = {},
>(
__namedParameters: SuiGraphQLClientOptions<Queries>,
): SuiGraphQLClient<Queries> Type Parameters
- Queries extends Record<
string,
GraphQLDocument<Record<string, unknown>, Record<string, unknown>>,
> = {}
Methods
execute
- execute<
const Query extends string,
Result = Queries[Query] extends GraphQLDocument<R, unknown>
? R
: Record<string, unknown>,
Variables = Queries[Query] extends GraphQLDocument<unknown, V>
? V
: Record<string, unknown>,
>(
query: Query,
options: Omit<GraphQLQueryOptions<Result, Variables>, "query">,
): Promise<GraphQLQueryResult<Result>>