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
}
}
}
`;