update TextsDepart query
This commit is contained in:
@@ -1,6 +1,31 @@
|
|||||||
|
#import "../fragments/TextCardFields.gql"
|
||||||
|
|
||||||
query TextsDepart {
|
query TextsDepart {
|
||||||
textsdepart {
|
textsdepart {
|
||||||
id,
|
...TextCardFields
|
||||||
title
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,6 +52,8 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getters: {
|
getters: {
|
||||||
|
textsDepart: state => state.textsDepart,
|
||||||
|
|
||||||
textsDepartOptions: state => {
|
textsDepartOptions: state => {
|
||||||
if (!state.textsDepart) return undefined
|
if (!state.textsDepart) return undefined
|
||||||
return state.textsDepart.map(({ id, title }) => ({
|
return state.textsDepart.map(({ id, title }) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user