2023-05-31 17:42:21 +02:00

31 lines
659 B
TypeScript

export const getEntityIdByRouteQuery = /* GraphQL */ `
query getEntityIdByRoute($path: String!) {
site {
route(path: $path) {
node {
__typename
... on Product {
entityId
}
... on Category {
entityId
}
... on Brand {
entityId
}
# NOTE: this API is still not public
# ... on NormalPage {
# entityId
# }
# ... on ContactPage {
# entityId
# }
# ... on RawHtmlPage {
# entityId
# }
}
}
}
}
`;