Directus / @directus/sdk / graphql / graphql
Function: graphql() ​
graphql(
config
): <Schema
>(client
) =>GraphqlClient
<Schema
>
Creates a client to communicate with Directus GraphQL.
Parameters ​
• config: Partial
<GraphqlConfig
>= {}
Returns ​
Function
A Directus GraphQL client.
Type parameters ​
• Schema
Parameters ​
• client:
DirectusClient
<Schema
>Returns ​
GraphqlClient
<Schema
>