change to admin api to fetch YMM options

This commit is contained in:
Chloe
2024-07-09 11:49:38 +07:00
parent eb9b6a9e59
commit 5ef8470526
10 changed files with 222 additions and 87 deletions

View File

@@ -0,0 +1,30 @@
export const getMetaobjectReferencesQuery = /* GraphQL */ `
query getMetaobjectReferences($id: ID!, $after: String) {
metaobject(id: $id) {
id
referencedBy(first: 20, after: $after) {
edges {
node {
key
referencer {
... on Metaobject {
id
type
fields {
key
value
}
}
}
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
}
}
`;