mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Destructure category from result
This commit is contained in:
parent
737d1f839a
commit
014de3b97b
@ -1,5 +1,5 @@
|
||||
NEO4J_URI=bolt://localhost:7687
|
||||
NEO4J_USER=neo4j
|
||||
NEO4J_USERNAME=neo4j
|
||||
NEO4J_PASSWORD=letmein
|
||||
GRAPHQL_PORT=4000
|
||||
GRAPHQL_URI=http://localhost:4000
|
||||
|
||||
@ -248,8 +248,8 @@ export default {
|
||||
}
|
||||
}`)
|
||||
},
|
||||
result(result) {
|
||||
this.setCategories(result.data.Category)
|
||||
result({ data: Category }) {
|
||||
this.setCategories(Category)
|
||||
},
|
||||
fetchPolicy: 'cache-and-network',
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user