Shopify SDK for Unity
Public Member Functions | List of all members
Shopify.Unity.SDK.QueryLoader Class Reference

Abstracts creating and sending queries and mutations via a BaseLoader. More...

Public Member Functions

 QueryLoader (BaseLoader loader)
 Accepts the BaseLoader , which will do network communcation to send GraphQL queries. More...
 
void Query (QueryRootDelegate buildQuery, QueryResponseHandler callback)
 Generates GraphQL queries. More...
 
void Query (QueryRootQuery query, QueryResponseHandler callback)
 Sends GraphQL queries to the GraphQL endpoint. More...
 
void Mutation (MutationDelegate buildQuery, MutationResponseHandler callback)
 Generates GraphQL mutations. More...
 
void Mutation (MutationQuery query, MutationResponseHandler callback)
 Sends GraphQL mutations to a GraphQL endpoint. More...
 

Detailed Description

Abstracts creating and sending queries and mutations via a BaseLoader.

Constructor & Destructor Documentation

◆ QueryLoader()

Shopify.Unity.SDK.QueryLoader.QueryLoader ( BaseLoader  loader)
inline

Accepts the BaseLoader , which will do network communcation to send GraphQL queries.

Parameters
loaderwill perform network communication to send GraphQL queries to a GraphQL endpoint

Member Function Documentation

◆ Mutation() [1/2]

void Shopify.Unity.SDK.QueryLoader.Mutation ( MutationDelegate  buildQuery,
MutationResponseHandler  callback 
)
inline

Generates GraphQL mutations.

Parameters
buildQueryDelegate to build a mutation query
callbackcallback that receives the mutation response

◆ Mutation() [2/2]

void Shopify.Unity.SDK.QueryLoader.Mutation ( MutationQuery  query,
MutationResponseHandler  callback 
)
inline

Sends GraphQL mutations to a GraphQL endpoint.

Parameters
querymutation to be sent to GraphQL endpoint
callbackcallback that receives the mutation response

◆ Query() [1/2]

void Shopify.Unity.SDK.QueryLoader.Query ( QueryRootDelegate  buildQuery,
QueryResponseHandler  callback 
)
inline

Generates GraphQL queries.

Parameters
buildQueryDelegate to build query
callbackcallback that receives the query response

◆ Query() [2/2]

void Shopify.Unity.SDK.QueryLoader.Query ( QueryRootQuery  query,
QueryResponseHandler  callback 
)
inline

Sends GraphQL queries to the GraphQL endpoint.

Parameters
queryquery to be sent to the GraphQL endpoint
callbackcallback that receives the query response

The documentation for this class was generated from the following file: