How can I create a new Document record with an N-quad then assert all the individual properties to it? I want to pass them into SetNQuad in my mutation.
The type information in Dgraph is stored under dgraph.type edge which has underlying type of [string]. See https://docs.dgraph.io/query-language/#setting-the-type-of-a-node. In SetNquads, this would just be another edge with a string value which is the type of the node.
Thanks Pawan. We’re re-evaluating dgraph for a new project. You’ll hear from me quite a bit I’d imagine :-p a lot has changed since we last used Dgraph, great to see the progress!