UNPKG
@jss-rule-engine/core
Version:
latest (0.3.28)
0.3.28
0.3.27
0.3.16
0.3.15
0.3.12
0.3.1
0.2.7
0.2.6
Rule engine for Sitecore JSS
@jss-rule-engine/core
/
src
/
graphQl
/
queries
/
itemAncestorsById.ts
19 lines
(18 loc)
•
404 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import
{ gql }
from
"apollo-boost"
export const itemAncestorsByIdQuery = gql`{ query itemAncestorsById($
id
: String) { item(path: $
id
, language:
"en"
) {
id
, name, ancestors {
id
, name, url {hostName, path, siteName, url}, path, template {
id
, name } }, } }}`