add Page query

This commit is contained in:
axolotle
2021-07-02 17:05:51 +02:00
parent 4f1f79ebc9
commit cfc02993b8
2 changed files with 30 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
query Page ($id: Int!) {
page: static (id: $id) {
id
title
content: texte
notes {
content: note
number: numero
links: liens {
# FIXME probably need to query titles and stuff on `Textref` or `Creation`
id
type: __typename
variant: familles {
id
}
... on Textprod {
parents: text_de_depart {
id
variant: familles {
id
}
}
}
}
}
}
}
+1
View File
@@ -3,3 +3,4 @@ export { default as AllTags } from './AllTags.gql'
export { default as Node } from './Node.gql'
export { default as Nodes } from './Nodes.gql'
export { default as NodesTrees } from './NodesTrees.gql'
export { default as Page } from './Page.gql'