What I want to do
Create multiple types to be consumed with graphql.
What I did
Note: Newbie here
- Added an schema using the guide here Fetching and Updating Your Schema - Dgraphcloud
Used variable
{ "sch" : "type Person { id: ID! name: String }" }
While trying to add another schema using the same endpoint
{ "sch" : "type Post { id: ID! name: String }" }
It replaces the existing schema.
How can we create the schema’s incrementally as well as update the relationships between 2 types.
Dgraph metadata
Dgraph version : v22.0.2
Dgraph codename : dgraph
Dgraph SHA-256 : a11258bf3352eff0521bc68983a5aedb9316414947719920d75f12143dd368bd
Commit SHA-1 : 55697a4
Commit timestamp : 2022-12-16 23:03:35 +0000
Branch : release/v22.0.2
Go version : go1.18.5
jemalloc enabled : true