Menu
metaobjects
Returns a paginated list of Metaobject entries for a specific type. Metaobjects are custom data structures that extend Shopify's data model with merchant or app-specific data types.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the metaobjects action (under Metaobjects).
- Fill in the fields below, then reference the result from later steps as
{{metaobjects.response.data}}.
Query
This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.
query Metaobjects($type: String!, $sortKey: String, $first: Int, $after: String, $last: Int, $before: String, $reverse: Boolean, $query: String) {
metaobjects(
type: $type
sortKey: $sortKey
first: $first
after: $after
last: $last
before: $before
reverse: $reverse
query: $query
) {
edges {
cursor
node {
capabilities
createdAt
createdBy
createdByApp
createdByStaff
definition
displayName
fields
handle
id
staffMember
thumbnailField
type
updatedAt
values
}
}
nodes {
capabilities {
onlineStore
publishable
}
createdAt
createdBy {
apiKey
appStoreAppUrl
appStoreDeveloperUrl
availableAccessScopes
banner
description
developerName
developerType
developerUrl
embedded
failedRequirements
features
feedback
handle
icon
id
installUrl
installation
isPostPurchaseAppInUse
launchUrl
navigationItems
optionalAccessScopes
previouslyInstalled
pricingDetails
pricingDetailsSummary
privacyPolicyUrl
publicCategory
published
requestedAccessScopes
screenshots
shopifyDeveloped
title
uninstallMessage
uninstallUrl
webhookApiVersion
}
createdByApp {
apiKey
appStoreAppUrl
appStoreDeveloperUrl
availableAccessScopes
banner
description
developerName
developerType
developerUrl
embedded
failedRequirements
features
feedback
handle
icon
id
installUrl
installation
isPostPurchaseAppInUse
launchUrl
navigationItems
optionalAccessScopes
previouslyInstalled
pricingDetails
pricingDetailsSummary
privacyPolicyUrl
publicCategory
published
requestedAccessScopes
screenshots
shopifyDeveloped
title
uninstallMessage
uninstallUrl
webhookApiVersion
}
createdByStaff {
accountType
active
email
exists
firstName
id
initials
isShopOwner
lastName
locale
name
phone
privateData
}
definition {
access
capabilities
createdAt
createdByApp
createdByStaff
description
displayNameKey
fieldDefinitions
hasThumbnailField
id
metaobjectsCount
name
standardTemplate
type
updatedAt
}
displayName
fields {
definition
jsonValue
key
reference
thumbnail
type
value
}
handle
id
staffMember {
accountType
active
email
exists
firstName
id
initials
isShopOwner
lastName
locale
name
phone
privateData
}
thumbnailField {
definition
jsonValue
key
reference
thumbnail
type
value
}
type
updatedAt
values
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"type": "string",
"sortKey": "string",
"first": 0,
"after": "string",
"last": 0,
"before": "string",
"reverse": false,
"query": "string"
}
Response
Read the result with {{metaobjects.response.data.data.metaobjects}}. If the API returns errors, the step fails and they are at {{metaobjects.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?