Upsert with multiple UIDs

@filter (eq (optionId, $ optionID))

Now I see that you are trying to use GraphQL Variables with Upsert Block. Unfortunately, this is not currently supported. I realize that you’re troubleshooting the issue by testing with various queries.

There are several factors involved here in this case.

  1. GraphQL Variables with Upsert Block is not supported.
  2. Normalize has no effect within an upsert transaction.
  3. Two blocks would indeed be the right way to use GraphQL Variables with Upsert Block, but it is not supported at this time. But you are on the right track, but you should use Value Variables instead. In fact, we haven’t even defined what this procedure would be like yet.
  4. You are using aliases as if they were variables. This does not work in Dgraph. But I believe you are doing this to try injecting through GraphQL Variables. Which wouldn’t work.

Please, feel free to open an issue requesting the GraphQL Variables with Upsert Block as a feature/enhancement.

Cheers.

1 Like