Best practice for modularizing a Dgraph GraphQL schema

Hello,

Any recommendations regarding best practice for modularizing a growing Dgraph GraphQL schema definition?

Been doing

!/bin/bash
 
 FILES=../schema/*.graphql
 for f in $FILES
 do
     echo "Processing $f file..."
     curl -H "Content-Type: application/json" -X POST https://example.com/dgraph/admin/schema --data-binary @$f
 done

Thank you

3 Likes

https://graphql-tools.com/docs/merge-typedefs/#import-everything-from-a-specified-folder I think will go.
Apollo Federation support Will there be support for Apollo Federation? soon