--- title: MetafieldDefinitionConnection - GraphQL Admin description: An auto-generated type for paginating through multiple MetafieldDefinitions. api_version: 2025-01 api_name: admin type: connection api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/2025-01/connections/metafielddefinitionconnection md: https://shopify.dev/docs/api/admin-graphql/2025-01/connections/metafielddefinitionconnection.md --- # Metafield​Definition​Connection connection An auto-generated type for paginating through multiple MetafieldDefinitions. ## Fields with this connection ### Deprecated fields with this connection * [Article.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/Article#field-Article.fields.metafieldDefinitions) OBJECT Deprecated * [Blog.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/Blog#field-Blog.fields.metafieldDefinitions) OBJECT Deprecated * [Collection.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/Collection#field-Collection.fields.metafieldDefinitions) OBJECT Deprecated * [Company.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/Company#field-Company.fields.metafieldDefinitions) OBJECT Deprecated * [Company​Location.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/CompanyLocation#field-CompanyLocation.fields.metafieldDefinitions) OBJECT Deprecated * [Customer.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/Customer#field-Customer.fields.metafieldDefinitions) OBJECT Deprecated * [Delivery​Customization.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/DeliveryCustomization#field-DeliveryCustomization.fields.metafieldDefinitions) OBJECT Deprecated * [Discount​Automatic​Node.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/DiscountAutomaticNode#field-DiscountAutomaticNode.fields.metafieldDefinitions) OBJECT Deprecated * [Discount​Code​Node.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/DiscountCodeNode#field-DiscountCodeNode.fields.metafieldDefinitions) OBJECT Deprecated * [Discount​Node.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/DiscountNode#field-DiscountNode.fields.metafieldDefinitions) OBJECT Deprecated * [Has​Metafield​Definitions.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/interfaces/HasMetafieldDefinitions#fields-metafieldDefinitions) INTERFACE Deprecated * [Location.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/Location#field-Location.fields.metafieldDefinitions) OBJECT Deprecated * [Market.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/Market#field-Market.fields.metafieldDefinitions) OBJECT Deprecated * [Order.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/Order#field-Order.fields.metafieldDefinitions) OBJECT Deprecated * [Page.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/Page#field-Page.fields.metafieldDefinitions) OBJECT Deprecated * [Payment​Customization.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/PaymentCustomization#field-PaymentCustomization.fields.metafieldDefinitions) OBJECT Deprecated * [Product.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/Product#field-Product.fields.metafieldDefinitions) OBJECT Deprecated * [Product​Variant.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/ProductVariant#field-ProductVariant.fields.metafieldDefinitions) OBJECT Deprecated * [Selling​Plan.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/SellingPlan#field-SellingPlan.fields.metafieldDefinitions) OBJECT Deprecated * [Validation.metafieldDefinitions](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/Validation#field-Validation.fields.metafieldDefinitions) OBJECT Deprecated *** ## Queries with this connection * [metafield​Definitions](https://shopify.dev/docs/api/admin-graphql/2025-01/queries/metafieldDefinitions) query Returns a list of metafield definitions. * key [String](https://shopify.dev/docs/api/admin-graphql/2025-01/scalars/String) ### Arguments Filter metafield definition by key. * namespace [String](https://shopify.dev/docs/api/admin-graphql/2025-01/scalars/String) Filter metafield definition by namespace. * owner​Type [Metafield​Owner​Type!](https://shopify.dev/docs/api/admin-graphql/2025-01/enums/MetafieldOwnerType) required Filter the metafield definition by the specific owner type. * pinned​Status [Metafield​Definition​Pinned​Status](https://shopify.dev/docs/api/admin-graphql/2025-01/enums/MetafieldDefinitionPinnedStatus) Default:ANY Filter the metafield definition by the pinned status. * constraint​Subtype [Metafield​Definition​Constraint​Subtype​Identifier](https://shopify.dev/docs/api/admin-graphql/2025-01/input-objects/MetafieldDefinitionConstraintSubtypeIdentifier) Filter metafield definitions based on whether they apply to a given resource subtype. * constraint​Status [Metafield​Definition​Constraint​Status](https://shopify.dev/docs/api/admin-graphql/2025-01/enums/MetafieldDefinitionConstraintStatus) Filter metafield definitions based on whether they are constrained. * first [Int](https://shopify.dev/docs/api/admin-graphql/2025-01/scalars/Int) The first `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql). * after [String](https://shopify.dev/docs/api/admin-graphql/2025-01/scalars/String) The elements that come after the specified [cursor](https://shopify.dev/api/usage/pagination-graphql). * last [Int](https://shopify.dev/docs/api/admin-graphql/2025-01/scalars/Int) The last `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql). * before [String](https://shopify.dev/docs/api/admin-graphql/2025-01/scalars/String) The elements that come before the specified [cursor](https://shopify.dev/api/usage/pagination-graphql). * reverse [Boolean](https://shopify.dev/docs/api/admin-graphql/2025-01/scalars/Boolean) Default:false Reverse the order of the underlying list. * sort​Key [Metafield​Definition​Sort​Keys](https://shopify.dev/docs/api/admin-graphql/2025-01/enums/MetafieldDefinitionSortKeys) Default:ID Sort the underlying list using a key. If your query is slow or returns an error, then [try specifying a sort key that matches the field used in the search](https://shopify.dev/api/usage/pagination-graphql#search-performance-considerations). * query [String](https://shopify.dev/docs/api/admin-graphql/2025-01/scalars/String) A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about [Shopify API search syntax](https://shopify.dev/api/usage/search-syntax). * * default string * created\_at time * id id * key string * namespace string * owner\_type string * type string * updated\_at time - Filter by a case-insensitive search of multiple fields in a document. - Example: * `query=Bob Norman` * `query=title:green hoodie` Filter by the date and time when the metafield definition was created. - Example: * `created_at:>2020-10-21T23:39:20Z` * `created_at:=1234` * `id:<=1234` Filter by the metafield definition [`key`](https://shopify.dev/docs/api/admin-graphql/latest/objects/MetafieldDefinition#field-key) field. - Example: * `key:some-key` Filter by the metafield definition [`namespace`](https://shopify.dev/docs/api/admin-graphql/latest/objects/MetafieldDefinition#field-namespace) field. - Example: * `namespace:some-namespace` Filter by the metafield definition [`ownerType`](https://shopify.dev/docs/api/admin-graphql/latest/objects/MetafieldDefinition#field-ownertype) field. - Example: * `owner_type:PRODUCT` Filter by the metafield definition [`type`](https://shopify.dev/docs/api/admin-graphql/latest/objects/MetafieldDefinition#field-type) field. - Example: * `type:single_line_text_field` Filter by the date and time when the metafield definition was last updated. Example: * `updated_at:>2020-10-21T23:39:20Z` * `updated_at:[metafield​Definitions](https://shopify.dev/docs/api/admin-graphql/2025-01/queries/metafieldDefinitions) ### Possible returns * <->[Metafield​Definition​Connection.edges](https://shopify.dev/docs/api/admin-graphql/2025-01/connections/MetafieldDefinitionConnection#returns-edges) * <->[Metafield​Definition​Connection.nodes](https://shopify.dev/docs/api/admin-graphql/2025-01/connections/MetafieldDefinitionConnection#returns-nodes) * <->[Metafield​Definition​Connection.pageInfo](https://shopify.dev/docs/api/admin-graphql/2025-01/connections/MetafieldDefinitionConnection#returns-pageInfo)