I don’t believe what you’re looking for is possible. One approach I’ve used in the past is to stitch together multiple schema definition files (say, person.graphql.schema and post.graphql.schema) on the fly and update the schema as part of a CD process.
Is this possible using DQL?
we are anticipating to have 1000+ types as we build our project, is the CD process good for such situation? The DDL part would be very infrequent, however changing 1 type, or add a relationship between 2 entities shouldn’t demand to fetch the whole schema.
Yes. DQL schema works a differently. Prior definitions aren’t overwritten with schema updates. However, if you’re relying on GraphQL types and their generated APIs, you cannot create them with DQL schema updates.
Honestly, I’d recommend that you maintain a complete schema outside of Dgraph (either in GraphQL or DQL) that can be placed into source control.