Implementing Filesystem like Graph System. How to fully get back tree without writing a ton of graphql code?

If you want the response back with a GraphQL query, then you will always have to explicitly list each depth, so no, that will not worthrough GraphQL, but will work directly in DQL.

Yes, but not recursively, this will only help for the fields that repeat in each type.

If you want to see the open issue for adding recursion to fragments to the GraphQL spec, then check out:

Once that ^ gets approved, then Dgraph might be able to implement it, but until then, the spec is the law here.

1 Like