mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +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_URI=bolt://localhost:7687
|
||||||
NEO4J_USER=neo4j
|
NEO4J_USERNAME=neo4j
|
||||||
NEO4J_PASSWORD=letmein
|
NEO4J_PASSWORD=letmein
|
||||||
GRAPHQL_PORT=4000
|
GRAPHQL_PORT=4000
|
||||||
GRAPHQL_URI=http://localhost:4000
|
GRAPHQL_URI=http://localhost:4000
|
||||||
|
|||||||
@ -22,16 +22,16 @@ Feature: Tags and Categories
|
|||||||
When I navigate to the administration dashboard
|
When I navigate to the administration dashboard
|
||||||
And I click on the menu item "Categories"
|
And I click on the menu item "Categories"
|
||||||
Then I can see the following table:
|
Then I can see the following table:
|
||||||
| | Name | Posts |
|
| | Name | Posts |
|
||||||
| | Just For Fun | 2 |
|
| | Just For Fun | 2 |
|
||||||
| | Happyness & Values | 1 |
|
| | Happyness & Values | 1 |
|
||||||
| | Health & Wellbeing | 0 |
|
| | Health & Wellbeing | 0 |
|
||||||
|
|
||||||
Scenario: See an overview of tags
|
Scenario: See an overview of tags
|
||||||
When I navigate to the administration dashboard
|
When I navigate to the administration dashboard
|
||||||
And I click on the menu item "Tags"
|
And I click on the menu item "Tags"
|
||||||
Then I can see the following table:
|
Then I can see the following table:
|
||||||
| | Name | Users | Posts |
|
| | Name | Users | Posts |
|
||||||
| 1 | Democracy | 3 | 4 |
|
| 1 | Democracy | 3 | 4 |
|
||||||
| 2 | Nature | 2 | 3 |
|
| 2 | Nature | 2 | 3 |
|
||||||
| 3 | Ecology | 1 | 1 |
|
| 3 | Ecology | 1 | 1 |
|
||||||
|
|||||||
@ -248,8 +248,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}`)
|
}`)
|
||||||
},
|
},
|
||||||
result(result) {
|
result({ data: Category }) {
|
||||||
this.setCategories(result.data.Category)
|
this.setCategories(Category)
|
||||||
},
|
},
|
||||||
fetchPolicy: 'cache-and-network',
|
fetchPolicy: 'cache-and-network',
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user