mirror of
https://github.com/vercel/commerce.git
synced 2025-05-12 12:47:50 +00:00
47 lines
757 B
TypeScript
47 lines
757 B
TypeScript
export const getImageQuery = /* GraphQL */ `
|
|
query getImage($id: ID!) {
|
|
node(id: $id) {
|
|
... on MediaImage {
|
|
image {
|
|
altText
|
|
width
|
|
height
|
|
url
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const getMetaobjectsByIdsQuery = /* GraphQL */ `
|
|
query getMetaobjectsByIds($ids: [ID!]!) {
|
|
nodes(ids: $ids) {
|
|
... on Metaobject {
|
|
id
|
|
type
|
|
fields {
|
|
reference {
|
|
... on Metaobject {
|
|
id
|
|
}
|
|
}
|
|
key
|
|
value
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const getFileQuery = /* GraphQL */ `
|
|
query getFile($id: ID!) {
|
|
node(id: $id) {
|
|
... on GenericFile {
|
|
id
|
|
url
|
|
alt
|
|
}
|
|
}
|
|
}
|
|
`;
|