It is not possible to create a new node from another using Upsert Block #4712
Labels
area/upsert
Issues related to upsert operations.
exp/intermediate
Fixing this requires some experience with the project.
kind/bug
Something is broken.
status/accepted
We accept to investigate/work on it.
Experience Report
What you wanted to do
Create a simple way of "versioning nodes" using Upsert Block.
It is something that is very popular in the community.
One important thing to note is that Upsert is not fundamentally created for this (creating new nodes). It is designed to update existing nodes. That is, this would be another feature, which might have another name.
What you actually did
Set my original node (that will keep on the DB)
I also tried
If you run the query below, you gonna see that it creates new nodes indeed, but with no data. Which could be related to #4692 (feels like)
This is a potential duplicated of #4692, but as it has another intention. It feels like a new feature. This could even be used for data migrations. Data treatments from other databases that export in different structures that Dgraph supports.
The text was updated successfully, but these errors were encountered: