dgraph
dgraph copied to clipboard
FEAT: add support for query and mutation in multitenancy
Signed-off-by: Tiger [email protected]
Test are ignored and will fix later. This PR add support for query and multi-tenancy. All the predicates are prefixed with a namespace.
implementation for the query processing. query is parsed same way as before. We prefix when task query is created so that we can avoid prefixing while parsing and striping during output json.
implementation for mutation we'll prefix the predicate with namespace. if the predicate is star we don't becuase, that is a delete request. we'll traverse using uid and delete the edge.
Namespace is derived from grpc context metadata
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.