Shopify Metafield Definition: inputs and fields
The custom fields defined for one kind of resource.
Read
List Metafield Definitions
Fetch metafield definitions from Shopify.
Route: GET /metafieldDefinitions
Excel formula: =LF.shopify.metafieldDefinitions("selection", "fields")
Inputs you can set
| Name | Type | Required | Description |
|---|---|---|---|
link | string | Yes | - |
key | string | No | Filter metafield definition by key. |
namespace | string | No | Filter metafield definition by namespace. |
ownerType | enum | Yes | Filter the metafield definition by the specific owner type. Values: API_PERMISSION, COMPANY, COMPANY_LOCATION, PAYMENT_CUSTOMIZATION, VALIDATION |
pinnedStatus | enum | No | Filter the metafield definition by the pinned status. Values: ANY, PINNED, UNPINNED |
constraintSubtype | string | No | Filter metafield definitions based on whether they apply to a given resource subtype. |
constraintStatus | enum | No | Filter metafield definitions based on whether they are constrained. Values: CONSTRAINED_AND_UNCONSTRAINED, CONSTRAINED_ONLY, UNCONSTRAINED_ONLY |
first | number | No | The first n elements from the paginated list. Default: 250 |
after | string | No | The elements that come after the specified cursor. |
last | number | No | The last n elements from the paginated list. |
before | string | No | The elements that come before the specified cursor. |
reverse | boolean | No | Reverse the order of the underlying list. Default: false |
sortKey | enum | No | 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... Values: ID, NAME, PINNED_POSITION, RELEVANCE |
query.created_at | date | No | Filter by the date and time when the metafield definition was created. Example: - created_at:>'2020-10-21T23:39:20Z' - created_at:<n... |
query.default | string | No | Filter by a case-insensitive search of multiple fields in a document. Example: - query=Bob Norman - query=title:green hoodie |
query.id | id | No | Filter by id range. Example: - id:1234 - id:>=1234 - id:<=1234 |
query.key | string | No | Filter by the metafield definition key field. E... |
query.namespace | string | No | Filter by the metafield definition [namespace](https://shopify.dev/docs/api/admin-graphql/latest/objects/MetafieldDefinition#field-namespa... |
query.owner_type | enum | No | Filter by the metafield definition [ownerType](https://shopify.dev/docs/api/admin-graphql/latest/objects/MetafieldDefinition#field-ownerty... Values: api_permission, company, company_location, payment_customization, validation |
query.type | string | No | Filter by the metafield definition type field.... |
query.updated_at | date | No | Filter by the date and time when the metafield definition was last updated. Example: - updated_at:>'2020-10-21T23:39:20Z' - updated_... |
Data returned in Excel
| Field | Type | Relations | Description |
|---|---|---|---|
admindefault | enum | — | - |
customerAccountdefault | enum | — | - |
storefrontdefault | enum | — | - |
keydefault | string | — | - |
descriptiondefault | string | — | - |
iddefault | id | → metafieldDefinitions | - |
keydefault | string | — | - |
compareDigestdefault | string | — | - |
createdAtdefault | date | — | - |
descriptiondefault | string | — | - |
iddefault | id | → metafields | - |
jsonValuedefault | string | — | - |
keydefault | string | — | - |
namespacedefault | string | — | - |
ownerTypedefault | enum | — | - |
sizeInBytesdefault | number | — | - |
translatabledefault | boolean | — | - |
typedefault | string | — | - |
updatedAtdefault | date | — | - |
valuedefault | string | — | - |
namedefault | string | — | - |
namespacedefault | string | — | - |
ownerTypedefault | enum | — | - |
pinnedPositiondefault | number | — | - |
descriptiondefault | string | — | - |
iddefault | id | — | - |
keydefault | string | — | - |
namedefault | string | — | - |
namespacedefault | string | — | - |
ownerTypesdefault | string | — | - |
visibleToStorefrontApidefault | boolean | — | - |
categorydefault | string | — | - |
namedefault | string | — | - |
supportsDefinitionMigrationsdefault | boolean | — | - |
valueTypedefault | enum | — | - |
useAsCollectionConditiondefault | boolean | — | - |
namedefault | string | — | - |
typedefault | string | — | - |
valuedefault | string | — | - |
validationStatusdefault | enum | — | - |