What is your objective? you could potentially use a custom DQL - But I believe that the “CRUD” like structure that the GraphQL does under the hood, do a kind of “upsert” behave.
As you have a “CRUD” like behavior based on your schema. I think you don’t need the upsert, unless you are doing something very specific and hard to accomplish with GraphQL alone.