How to upsert using GraphQL?

Indeed, thats what the Custom DQL will do but this route is not preferred because my GQL schema should enforce a database model/structure I.e., using directives like @hasInverse, @id, etc. If I now create a Custom DQL to perform operations like this, I will be bypassing the GQL layer that should enforce the schema, therefore potentially introducing major inconsistencies.

This seems sensible to me. So far I see, I don’t get any error when there is nothing to update.

2 Likes