mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
feat: implement accordion content type
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
@@ -18,3 +18,21 @@ export const getMetaobjectsQuery = /* GraphQL */ `
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const getMetaobjectQuery = /* GraphQL */ `
|
||||
query getMetaobject($id: ID!) {
|
||||
metaobject(id: $id) {
|
||||
id
|
||||
type
|
||||
fields {
|
||||
reference {
|
||||
... on Metaobject {
|
||||
id
|
||||
}
|
||||
}
|
||||
key
|
||||
value
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
@@ -18,6 +18,7 @@ export const getMetaobjectsByIdsQuery = /* GraphQL */ `
|
||||
nodes(ids: $ids) {
|
||||
... on Metaobject {
|
||||
id
|
||||
type
|
||||
fields {
|
||||
reference {
|
||||
... on Metaobject {
|
||||
|
@@ -19,12 +19,11 @@ const pageFragment = /* GraphQL */ `
|
||||
`;
|
||||
|
||||
export const getPageQuery = /* GraphQL */ `
|
||||
query getPage($handle: String!, $metafieldIdentifiers: [HasMetafieldsIdentifier!]!) {
|
||||
query getPage($handle: String!, $key: String!, $namespace: String) {
|
||||
pageByHandle(handle: $handle) {
|
||||
...page
|
||||
metafields(identifiers: $metafieldIdentifiers) {
|
||||
metafield(key: $key, namespace: $namespace) {
|
||||
value
|
||||
key
|
||||
id
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user