update queries with mapitem
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# This fragment queries data needed for an object to be displayed as a `Node`
|
||||
|
||||
fragment NodeFull on TextInterface {
|
||||
fragment NodeFull on MapItemInterface {
|
||||
id
|
||||
|
||||
... on Textref {
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
# This fragment queries some elementary data to define the content structure
|
||||
|
||||
fragment NodeInitial on TextInterface {
|
||||
fragment NodeInitial on MapItemInterface {
|
||||
id
|
||||
type: bundle
|
||||
variant: familles {
|
||||
id
|
||||
type: __typename
|
||||
# type: bundle
|
||||
|
||||
... on TextInterface {
|
||||
variant: familles {
|
||||
id
|
||||
}
|
||||
}
|
||||
|
||||
... on Textprod {
|
||||
@@ -24,6 +28,12 @@ fragment NodeInitial on TextInterface {
|
||||
}
|
||||
|
||||
... on Textref {
|
||||
parents: text_de_depart {
|
||||
id
|
||||
variant: familles {
|
||||
id
|
||||
}
|
||||
}
|
||||
|
||||
siblings: text_en_rebond {
|
||||
id
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
# This fragment queries data needed for an object to be displayed as a `MiniNodeCard`
|
||||
|
||||
fragment NodePartial on TextInterface {
|
||||
fragment NodePartial on MapItemInterface {
|
||||
id
|
||||
content: texte
|
||||
... on TextInterface {
|
||||
content: texte
|
||||
|
||||
# Needed by `Creation`
|
||||
images {
|
||||
id
|
||||
url
|
||||
alt
|
||||
images {
|
||||
id
|
||||
url
|
||||
alt
|
||||
}
|
||||
}
|
||||
|
||||
... on Textprod {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
query Node ($id: Int!) {
|
||||
node: texte (id: $id) {
|
||||
node: mapitem (id: $id) {
|
||||
FRAGMENTS
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
query Nodes ($ids: [Int]) {
|
||||
nodes: textsref (ids: $ids) {
|
||||
nodes: mapitems (ids: $ids) {
|
||||
FRAGMENTS
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
query NodesTrees ($id: Int!) {
|
||||
node: texte (id: $id) {
|
||||
node: mapitem (id: $id) {
|
||||
id
|
||||
FRAGMENT
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user