update TextsDepart query

This commit is contained in:
axolotle
2021-04-20 15:39:41 +02:00
parent eece18184e
commit ba2f5d6767
2 changed files with 29 additions and 2 deletions
+27 -2
View File
@@ -1,6 +1,31 @@
#import "../fragments/TextCardFields.gql"
query TextsDepart {
textsdepart {
id,
title
...TextCardFields
children: text_produits {
id
}
siblings: text_en_rebond {
id
title
authors: auteurs {
name
first_name
last_name
}
edition {
name
}
}
tags {
id
name
}
# degres_detrangement: Int
notes {
note
number: numero
}
}
}
+2
View File
@@ -52,6 +52,8 @@ export default {
},
getters: {
textsDepart: state => state.textsDepart,
textsDepartOptions: state => {
if (!state.textsDepart) return undefined
return state.textsDepart.map(({ id, title }) => ({