graphql-mesh icon indicating copy to clipboard operation
graphql-mesh copied to clipboard

[MySQL Handler] Support upsert mutation

Open ryoheinagao opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe.

I want to use GraphQL Mesh and MySQL like Hasura + PostgreSQL. When I want to upsert row data, I have to exec multiple mutation or combine select query.

Describe the solution you'd like

In GraphQL Mesh, you use mysql-utilities which has sdk for upsert SQL. So I suggest how about support upsert like other mutations and queries.

Describe alternatives you've considered

Alternative method is multiple calls from client-side or implement self made handlers.

ryoheinagao avatar Jun 02 '22 11:06 ryoheinagao

Would you create a PR for this change?

ardatan avatar Jun 05 '22 16:06 ardatan

Thank you for your comment, I will try it.

ryoheinagao avatar Jun 06 '22 05:06 ryoheinagao

Hi, I found a bug in mysql-utilities, so I will create a PR after https://github.com/tshemsedinov/node-mysql-utilities/pull/64 merged.

ryoheinagao avatar Jun 06 '22 11:06 ryoheinagao