Hi, i’ve read through the upsert docs at https://dgraph.io/docs/mutations/#upsert-block but can’t figure out how to acheive the following scenario, help greatly appreciated!
I have a list of values that may or may not exist in dgraph. In a single upsert block, I want to query for nodes based on these predicates (e.g. (func: eq(uniqueValue, [“abc”,“def”,“ghi”]))). For each predicate, if no node/uid is found, I want to create a new uid and set uniqueValue to this value. Lastly I need to get back the complete list of uid-uniqueValue pairs, whether they existed already or were created by the upsert.
I can make this work if i use one upsert block per uniqueValue, but that does not perform very well for the amount of data. Is this possible?