Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geovanisouza92/amplify-graphql-trees
https://github.com/geovanisouza92/amplify-graphql-trees
amplify graphql
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/geovanisouza92/amplify-graphql-trees
- Owner: geovanisouza92
- Created: 2020-09-20T17:12:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-13T19:05:27.000Z (almost 4 years ago)
- Last Synced: 2023-03-22T20:53:23.188Z (almost 2 years ago)
- Topics: amplify, graphql
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Reference: https://pt.slideshare.net/billkarwin/models-for-hierarchical-data
### Seed
```graphql
mutation Seed {
# a: createBranchWithLinks(name: "A") {
# id
# name
# }
#
# b: createBranchWithLinks(name: "B", ancestorID: a) {
# id
# name
# }
# d: createBranchWithLinks(name: "D", ancestorID: a) {
# id
# name
# }
#
# c: createBranchWithLinks(name: "C", ancestorID: b) {
# id
# name
# }
# e: createBranchWithLinks(name: "E", ancestorID: d) {
# id
# name
# }
# f: createBranchWithLinks(name: "F", ancestorID: d) {
# id
# name
# }
#
# g: createBranchWithLinks(name: "G", ancestorID: f) {
# id
# name
# }
}
```