How to maintain uid

Posted by shanghai-Jerry:

Here is the situation: one company should be only one entity in dgraph, if the company is already in dgraph and i want to get a link with this company when i need to put other data, how to maintain the company’s uid? thanks

manishrjain commented :

You can query for that company’s uid, and then use it in your mutations.

shanghai-Jerry commented :

so the query should be much fast, i will try and see it works or not