commerce/lib/shopify/queries/metaobject.ts
Chloe 882d1db67c
feat: move content to shopify
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-06-05 14:48:31 +07:00

39 lines
708 B
TypeScript

export const getMetaobjectsQuery = /* GraphQL */ `
query getMetaobjects($type: String!) {
metaobjects(type: $type, first: 200) {
edges {
node {
id
fields {
reference {
... on Metaobject {
id
}
}
key
value
}
}
}
}
}
`;
export const getMetaobjectQuery = /* GraphQL */ `
query getMetaobject($id: ID, $handle: MetaobjectHandleInput) {
metaobject(id: $id, handle: $handle) {
id
type
fields {
reference {
... on Metaobject {
id
}
}
key
value
}
}
}
`;