TanqoryDocs

metafieldDefinitions

  • Query
  • Content and shop

Lists the metafield definitions for one ownerType, a page at a time with first/after. Narrow it by namespace, key, pinnedStatus, constraints or a query string.

Arguments

ArgumentTypeRequiredDefault
afterStringOptional
beforeStringOptional
constraintStatusMetafieldDefinitionConstraintStatusOptional
constraintSubtypeMetafieldDefinitionConstraintSubtypeIdentifierOptional
firstIntOptional
keyStringOptional
lastIntOptional
namespaceStringOptional
ownerTypeMetafieldOwnerType!Required
pinnedStatusMetafieldDefinitionPinnedStatusOptionalANY
queryStringOptional
reverseBooleanOptionalfalse
sortKeyMetafieldDefinitionSortKeysOptionalID

Returns

MetafieldDefinitionConnection! A page of MetafieldDefinition objects, with pageInfo for the next page.

FieldTypeDescription
edges[MetafieldDefinitionEdge!]!
nodes[MetafieldDefinition!]!
pageInfoPageInfo!

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"query MetafieldDefinitions($first: Int, $ownerType: MetafieldOwnerType!) {\n  metafieldDefinitions(first: $first, ownerType: $ownerType) {\n    nodes {\n      description\n      id\n      key\n      metafieldsCount\n      name\n      namespace\n      ownerType\n      pinnedPosition\n      useAsCollectionCondition\n      validationStatus\n    }\n    pageInfo { hasNextPage endCursor }\n  }\n}","variables":{"first":5,"ownerType":"API_PERMISSION"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10