Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 70 additions & 1 deletion functions-cart-checkout-validation-js/schema.graphql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# api_version: 2026-04
# api_version: 2026-07

schema {
query: Input
Expand Down Expand Up @@ -74,6 +74,13 @@ type BuyerIdentity {
Used to manage and track purchases made by businesses rather than individual customers.
"""
purchasingCompany: PurchasingCompany

"""
Represents the [Shop User](https://help.shopify.com/en/manual/online-sales-channels/shop/sign-in-features)
corresponding to the customer within the shop, if the buyer is a Shop User. Can be used to request [Shop User
metafields](https://shopify.dev/docs/api/shop-user-custom-data).
"""
shopUser: ShopUser
}

type BuyerJourney {
Expand Down Expand Up @@ -5039,6 +5046,40 @@ type ProductVariant implements HasMetafields {
"""
id: ID!

"""
Whether the product variant is in any of the specified collections. The variant must be in at least one
collection from the list to return `true`. A variant is considered to be in a collection when the variant
itself is a member of the collection, or when its product is a member of the collection.

A collection is a group of products that can be displayed in online stores and other sales channels in
categories, which makes it easy for customers to find them. For example, an athletics store might create
different collections for running attire and accessories.
"""
inAnyCollection(
"""
A list of [globally-unique collection IDs](https://shopify.dev/docs/api/usage/gids)
to check membership against. For example, `gid://shopify/Collection/123`, `gid://shopify/Collection/456`.
"""
ids: [ID!]! = []
): Boolean!

"""
Whether the product variant is in each of the specified collections. A variant is considered to be in a
collection when the variant itself is a member of the collection, or when its product is a member of the
collection.

A collection is a group of products that can be displayed in online stores and other sales channels in
categories, which makes it easy for customers to find them. For example, an athletics store might create
different collections for running attire and accessories.
"""
inCollections(
"""
A list of [globally-unique collection IDs](https://shopify.dev/docs/api/usage/gids)
to check membership against. For example, `gid://shopify/Collection/123`, `gid://shopify/Collection/456`.
"""
ids: [ID!]! = []
): [CollectionMembership!]!

"""
A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information
about a Shopify resource, such as products, orders, and
Expand Down Expand Up @@ -5263,6 +5304,34 @@ type Shop implements HasMetafields {
): Metaobject
}

"""
Represents information about the buyer that is interacting with the cart.
"""
type ShopUser implements HasMetafields {
"""
A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information
about a Shopify resource, such as products, orders, and
[many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType).
Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries)
enables you to customize the checkout experience.
"""
metafield(
"""
The unique identifier for the metafield within its namespace. A metafield is composed of a
namespace and a key, in the format `namespace.key`.
"""
key: String!

"""
A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts
between different apps or different parts of the same app. If omitted, then the
[app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership)
is used.
"""
namespace: String
): Metafield
}

"""
A subset of the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format that
includes the time but not the date or timezone which is determined from context.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_version = "2026-04"
api_version = "2026-07"

[[extensions]]
name = "t:name"
Expand Down
71 changes: 70 additions & 1 deletion functions-cart-checkout-validation-rs/schema.graphql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# api_version: 2026-04
# api_version: 2026-07

schema {
query: Input
Expand Down Expand Up @@ -74,6 +74,13 @@ type BuyerIdentity {
Used to manage and track purchases made by businesses rather than individual customers.
"""
purchasingCompany: PurchasingCompany

"""
Represents the [Shop User](https://help.shopify.com/en/manual/online-sales-channels/shop/sign-in-features)
corresponding to the customer within the shop, if the buyer is a Shop User. Can be used to request [Shop User
metafields](https://shopify.dev/docs/api/shop-user-custom-data).
"""
shopUser: ShopUser
}

type BuyerJourney {
Expand Down Expand Up @@ -5039,6 +5046,40 @@ type ProductVariant implements HasMetafields {
"""
id: ID!

"""
Whether the product variant is in any of the specified collections. The variant must be in at least one
collection from the list to return `true`. A variant is considered to be in a collection when the variant
itself is a member of the collection, or when its product is a member of the collection.

A collection is a group of products that can be displayed in online stores and other sales channels in
categories, which makes it easy for customers to find them. For example, an athletics store might create
different collections for running attire and accessories.
"""
inAnyCollection(
"""
A list of [globally-unique collection IDs](https://shopify.dev/docs/api/usage/gids)
to check membership against. For example, `gid://shopify/Collection/123`, `gid://shopify/Collection/456`.
"""
ids: [ID!]! = []
): Boolean!

"""
Whether the product variant is in each of the specified collections. A variant is considered to be in a
collection when the variant itself is a member of the collection, or when its product is a member of the
collection.

A collection is a group of products that can be displayed in online stores and other sales channels in
categories, which makes it easy for customers to find them. For example, an athletics store might create
different collections for running attire and accessories.
"""
inCollections(
"""
A list of [globally-unique collection IDs](https://shopify.dev/docs/api/usage/gids)
to check membership against. For example, `gid://shopify/Collection/123`, `gid://shopify/Collection/456`.
"""
ids: [ID!]! = []
): [CollectionMembership!]!

"""
A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information
about a Shopify resource, such as products, orders, and
Expand Down Expand Up @@ -5263,6 +5304,34 @@ type Shop implements HasMetafields {
): Metaobject
}

"""
Represents information about the buyer that is interacting with the cart.
"""
type ShopUser implements HasMetafields {
"""
A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information
about a Shopify resource, such as products, orders, and
[many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType).
Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries)
enables you to customize the checkout experience.
"""
metafield(
"""
The unique identifier for the metafield within its namespace. A metafield is composed of a
namespace and a key, in the format `namespace.key`.
"""
key: String!

"""
A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts
between different apps or different parts of the same app. If omitted, then the
[app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership)
is used.
"""
namespace: String
): Metafield
}

"""
A subset of the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format that
includes the time but not the date or timezone which is determined from context.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_version = "2026-04"
api_version = "2026-07"

[[extensions]]
name = "t:name"
Expand Down
71 changes: 70 additions & 1 deletion functions-cart-checkout-validation-wasm/schema.graphql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# api_version: 2026-04
# api_version: 2026-07

schema {
query: Input
Expand Down Expand Up @@ -74,6 +74,13 @@ type BuyerIdentity {
Used to manage and track purchases made by businesses rather than individual customers.
"""
purchasingCompany: PurchasingCompany

"""
Represents the [Shop User](https://help.shopify.com/en/manual/online-sales-channels/shop/sign-in-features)
corresponding to the customer within the shop, if the buyer is a Shop User. Can be used to request [Shop User
metafields](https://shopify.dev/docs/api/shop-user-custom-data).
"""
shopUser: ShopUser
}

type BuyerJourney {
Expand Down Expand Up @@ -5039,6 +5046,40 @@ type ProductVariant implements HasMetafields {
"""
id: ID!

"""
Whether the product variant is in any of the specified collections. The variant must be in at least one
collection from the list to return `true`. A variant is considered to be in a collection when the variant
itself is a member of the collection, or when its product is a member of the collection.

A collection is a group of products that can be displayed in online stores and other sales channels in
categories, which makes it easy for customers to find them. For example, an athletics store might create
different collections for running attire and accessories.
"""
inAnyCollection(
"""
A list of [globally-unique collection IDs](https://shopify.dev/docs/api/usage/gids)
to check membership against. For example, `gid://shopify/Collection/123`, `gid://shopify/Collection/456`.
"""
ids: [ID!]! = []
): Boolean!

"""
Whether the product variant is in each of the specified collections. A variant is considered to be in a
collection when the variant itself is a member of the collection, or when its product is a member of the
collection.

A collection is a group of products that can be displayed in online stores and other sales channels in
categories, which makes it easy for customers to find them. For example, an athletics store might create
different collections for running attire and accessories.
"""
inCollections(
"""
A list of [globally-unique collection IDs](https://shopify.dev/docs/api/usage/gids)
to check membership against. For example, `gid://shopify/Collection/123`, `gid://shopify/Collection/456`.
"""
ids: [ID!]! = []
): [CollectionMembership!]!

"""
A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information
about a Shopify resource, such as products, orders, and
Expand Down Expand Up @@ -5263,6 +5304,34 @@ type Shop implements HasMetafields {
): Metaobject
}

"""
Represents information about the buyer that is interacting with the cart.
"""
type ShopUser implements HasMetafields {
"""
A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information
about a Shopify resource, such as products, orders, and
[many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType).
Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries)
enables you to customize the checkout experience.
"""
metafield(
"""
The unique identifier for the metafield within its namespace. A metafield is composed of a
namespace and a key, in the format `namespace.key`.
"""
key: String!

"""
A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts
between different apps or different parts of the same app. If omitted, then the
[app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership)
is used.
"""
namespace: String
): Metafield
}

"""
A subset of the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format that
includes the time but not the date or timezone which is determined from context.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_version = "2026-04"
api_version = "2026-07"

[[extensions]]
name = "t:name"
Expand Down
Loading
Loading