Fulfillment/GraphQL

Fulfillment/GraphQL

Source:

Fulfillment related GraphQL resolvers

Methods

(static) "Mutation.createFlatRateFulfillmentMethod"(parentResult, context) → {Promise.<Object>}

resolver for the createFlatRateFulfillmentMethod GraphQL mutation

Source:
Parameters:
Name Type Description
parentResult Object

unused

args.input Object

an object of all mutation arguments that were sent by the client

Properties
Name Type Attributes Description
method Object

The method object

shopId String

The shop to create this flat rate fulfillment method for

clientMutationId String <optional>

An optional string identifying the mutation call

context Object

an object containing the per-request state

Returns:

CreateFlatRateFulfillmentMethodPayload

Type
Promise.<Object>

(static) "Mutation.deleteFlatRateFulfillmentMethod"(parentResult, context) → {Promise.<Object>}

resolver for the deleteFlatRateFulfillmentMethod GraphQL mutation

Source:
Parameters:
Name Type Description
parentResult Object

unused

args.input Object

an object of all mutation arguments that were sent by the client

Properties
Name Type Attributes Description
methodId String

The ID of the method you want to delete

shopId String

The shop to delete this flat rate fulfillment method for

clientMutationId String <optional>

An optional string identifying the mutation call

context Object

an object containing the per-request state

Returns:

DeleteFlatRateFulfillmentMethodPayload

Type
Promise.<Object>

(static) "Mutation.updateFlatRateFulfillmentMethod"(parentResult, context) → {Promise.<Object>}

resolver for the updateFlatRateFulfillmentMethod GraphQL mutation

Source:
Parameters:
Name Type Description
parentResult Object

unused

args.input Object

an object of all mutation arguments that were sent by the client

Properties
Name Type Attributes Description
methodId String

The ID of the method you want to update

method Object

The full updated method object, without ID

shopId String

The shop to update this flat rate fulfillment method for

clientMutationId String <optional>

An optional string identifying the mutation call

context Object

an object containing the per-request state

Returns:

UpdateFlatRateFulfillmentMethodPayload

Type
Promise.<Object>