私有元字段表示附加到资源的自定义元数据。私有元字段对在商店资源上创建它们的应用程序是私有的。
在本页面
字段
- createdAt(
[DateTime!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01)
)
创建专用元字段的日期和时间。 - id(
[ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01)
)
私有元字段的ID。 - key(
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
私有元字段的键名。 - namespace(
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
私有元字段的名称空间。 - UpdatedAt(
[DateTime!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01)
)
私有元字段被更新的日期和时间。 - value(
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
私有元字段的值。 - valueType(
[PrivateMetafieldValueType!](https://shopify.dev/docs/admin-api/graphql/reference/metafields/privatemetafieldvaluetype)
)
表示私有元字段值类型。
返回PrivateMetafield的类型
[Collection.privateMetafields](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/collection#privatemetafields-2021-01)
[Collection.privateMetafield](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/collection#privatemetafield-2021-01)
[Customer.privateMetafield](https://shopify.dev/docs/admin-api/graphql/reference/customers/customer#privatemetafield-2021-01)
[Customer.privateMetafields](https://shopify.dev/docs/admin-api/graphql/reference/customers/customer#privatemetafields-2021-01)
[DraftOrder.privateMetafield](https://shopify.dev/docs/admin-api/graphql/reference/orders/draftorder#privatemetafield-2021-01)
[DraftOrder.privateMetafields](https://shopify.dev/docs/admin-api/graphql/reference/orders/draftorder#privatemetafields-2021-01)
[Image.privateMetafield](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/image#privatemetafield-2021-01)
[Image.privateMetafields](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/image#privatemetafields-2021-01)
[Order.privateMetafields](https://shopify.dev/docs/admin-api/graphql/reference/orders/order#privatemetafields-2021-01)
[Order.privateMetafield](https://shopify.dev/docs/admin-api/graphql/reference/orders/order#privatemetafield-2021-01)
[Product.privateMetafield](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/product#privatemetafield-2021-01)
[Product.privateMetafields](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/product#privatemetafields-2021-01)
[ProductVariant.privateMetafield](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/productvariant#privatemetafield-2021-01)
[ProductVariant.privateMetafields](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/productvariant#privatemetafields-2021-01)
[QueryRoot.privateMetafields](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/queryroot#privatemetafields-2021-01)
[QueryRoot.privateMetafield](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/queryroot#privatemetafield-2021-01)
[Shop.privateMetafield](https://shopify.dev/docs/admin-api/graphql/reference/store-properties/shop#privatemetafield-2021-01)
[Shop.privateMetafields](https://shopify.dev/docs/admin-api/graphql/reference/store-properties/shop#privatemetafields-2021-01)
PrivateMetafield的变异
- privateMetafieldDelete
删除私有元字段。 - privateMetafieldUpsert
创建或更新私有元字段。
派生关系
[Node](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/node)