Fulfillment Constraint Rule
Requires access scope.
A fulfillment constraint rule.
Anchor to FieldsFields
- deliveryMethodTypes ([DeliveryMethodType!]!)
- function (ShopifyFunction!)
- id (ID!)
- metafield (Metafield)
- metafields (MetafieldConnection!)
- Anchor to deliveryMethodTypesdelivery•[Delivery
Method Types Method Type!]! non-null Delivery method types that the function is associated with.
- Anchor to functionfunction•Shopify
Function! non-null The ID for the fulfillment constraint function.
- •ID!non-null
A globally-unique ID.
- Anchor to metafieldmetafield•Metafield
A custom field, including its
namespaceandkey, that's associated with a Shopify resource for the purposes of adding and storing additional information.- Anchor to namespacenamespace•String
The container the metafield belongs to. If omitted, the app-reserved namespace will be used.
- •String!required
The key for the metafield.
Arguments
- Anchor to metafieldsmetafields•Metafield
Connection! non-null A list of custom fields that a merchant associates with a Shopify resource.
- Anchor to namespacenamespace•String
The metafield namespace to filter by. If omitted, all metafields are returned.
- Anchor to keyskeys•[String!]
List of keys of metafields in the format
namespace.key, will be returned in the same format.- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
Anchor to QueriesQueries
- fulfillmentConstraintRules ([FulfillmentConstraintRule!]!)
- •query
The fulfillment constraint rules that belong to a shop.
Anchor to MutationsMutations
- fulfillmentConstraintRuleCreate (FulfillmentConstraintRuleCreatePayload)
- fulfillmentConstraintRuleUpdate (FulfillmentConstraintRuleUpdatePayload)
- •mutation
Creates a fulfillment constraint rule and its metafield.
- Anchor to functionIdfunction•String
Id Deprecated - Anchor to functionHandlefunction•String
Handle The handle of the function providing the constraint rule.
- Anchor to deliveryMethodTypesdelivery•[Delivery
Method Types Method Type!]! required Associate the function with one or multiple delivery method types.
- Anchor to metafieldsmetafields•[Metafield
Input!] Default:[] Metafields to associate to the fulfillment constraint rule.
Arguments
- •mutation
Update a fulfillment constraint rule.
- •ID!required
A globally-unique identifier for the fulfillment constraint rule.
- Anchor to deliveryMethodTypesdelivery•[Delivery
Method Types Method Type!]! required Specifies the delivery method types to be updated. If not provided or providing an empty list will associate the function with all delivery methods.
Arguments
- •ID!