update other queries

This commit is contained in:
axolotle
2021-05-09 00:05:03 +02:00
parent 5fc3c01f14
commit d847627e68
3 changed files with 14 additions and 36 deletions
+3 -4
View File
@@ -19,18 +19,17 @@ fragment TextCardFields on TextInterface {
} }
families: familles { families: familles {
id id
uuid
name name
} }
# field_titre # field_titre FIXME ?
authors: auteurs { authors: auteurs {
id id
uuid
name name
first_name
last_name
} }
edition { edition {
id id
uuid
name name
} }
type: __typename type: __typename
+9 -19
View File
@@ -1,8 +1,8 @@
#import "../fragments/TextCardFields.gql" #import "../fragments/TextFields.gql"
query TextRef ($id: Int!) { query TextRef ($id: Int!) {
text: texte (id: $id) { text: texte (id: $id) {
...TextCardFields ...TextFields
... on Textref { ... on Textref {
children: text_produits { children: text_produits {
@@ -18,27 +18,17 @@ query TextRef ($id: Int!) {
name name
} }
} }
tags {
id
name
}
# degres_detrangement: Int
notes {
note
number: numero
}
} }
... on Textprod { ... on Textprod {
tags: tagsprod { siblings: text_en_rebond {
id id
name title
} authors: auteurs {
notes { name
note }
number: numero edition {
links: liens { name
id
} }
} }
} }
+2 -13
View File
@@ -1,8 +1,8 @@
#import "../fragments/TextCardFields.gql" #import "../fragments/TextFields.gql"
query TextsDepart { query TextsDepart {
textsdepart { textsdepart {
...TextCardFields ...TextFields
children: text_produits { children: text_produits {
id id
} }
@@ -11,21 +11,10 @@ query TextsDepart {
title title
authors: auteurs { authors: auteurs {
name name
first_name
last_name
} }
edition { edition {
name name
} }
} }
tags {
id
name
}
# degres_detrangement: Int
notes {
note
number: numero
}
} }
} }