关联元字段信息-HasMetafields interface
表示有关与指定资源关联的元字段的信息。
字段
- metafield(
[Metafield](https://shopify.dev/docs/admin-api/graphql/reference/metafields/metafield)
)
与资源关联的元字段。
- metafields(
[MetafieldConnection!](https://shopify.dev/docs/admin-api/graphql/reference/metafields/metafieldconnection)
)
与资源关联的元字段的分页列表。
争论 | 描述 |
---|---|
after () [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) |
返回指定游标之后的元素。 |
before () [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) |
返回指定游标之前的元素。 |
first () [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) |
返回n 列表中的第一个元素。 |
last () [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) |
返回n 列表中的最后一个元素。 |
namespace () [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) |
在资源下查找具有特定名称空间的所有元字段。 |
reverse () [Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01) |
颠倒基础列表的顺序。 默认值: false |
- privateMetafield(
[PrivateMetafield](https://shopify.dev/docs/admin-api/graphql/reference/metafields/privatemetafield)
)
返回通过名称空间和键找到的私有元字段。
- privateMetafields(
[PrivateMetafieldConnection!](https://shopify.dev/docs/admin-api/graphql/reference/metafields/privatemetafieldconnection)
)
私有元字段列表。
争论 | 描述 |
---|---|
after () [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) |
返回指定游标之后的元素。 |
before () [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) |
返回指定游标之前的元素。 |
first () [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) |
返回n 列表中的第一个元素。 |
last () [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) |
返回n 列表中的最后一个元素。 |
namespace () [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) |
按名称空间过滤私有元字段。 |
reverse () [Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01) |
颠倒基础列表的顺序。 默认值: false |
实现HasMetafields的类型
[Collection](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/collection)
[Customer](https://shopify.dev/docs/admin-api/graphql/reference/customers/customer)
[DraftOrder](https://shopify.dev/docs/admin-api/graphql/reference/orders/draftorder)
[Image](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/image)
[Order](https://shopify.dev/docs/admin-api/graphql/reference/orders/order)
[Product](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/product)
[ProductVariant](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/productvariant)
[Shop](https://shopify.dev/docs/admin-api/graphql/reference/store-properties/shop)