A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hey Shopify Dev Community,
I created a metaobject definition using the GraphiQL app, but forgot to copy the ID of the definition.
Now I want to delete it. Is there a way to do so without the ID?
Or is there a query I can use to list out the latest created Metaobject Definitions so I can get the ID?
I might have missed it as I read through the documentation.
Any input is appreciated. Thank you!
Solved! Go to the solution
This is an accepted solution.
Hi, there
You could try this
query GetLMetaobjectDefinitions {
metaobjectDefinitions(first: 10, reverse: true) {
edges {
node {
id
name
type
createdAt
}
}
}
}
This is an accepted solution.
Hi, there
You could try this
query GetLMetaobjectDefinitions {
metaobjectDefinitions(first: 10, reverse: true) {
edges {
node {
id
name
type
createdAt
}
}
}
}