dgraph icon indicating copy to clipboard operation
dgraph copied to clipboard

FEAT: add support for query and mutation in multitenancy

Open poonai opened this issue 4 years ago • 1 comments

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


This change is Reviewable

poonai avatar Jun 26 '20 06:06 poonai

CLA assistant check
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.

CLAassistant avatar Apr 29 '22 07:04 CLAassistant