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