ardatan / ardatan/graphql-mesh

[MySQL Handler] Support upsert mutation

Open
#4,002 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.5k
Forks
363
Avg merge
6h 10m
Merged PRs (30d)
19

Description

**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](https://github.com/tshemsedinov/node-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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the MySQL Handler's existing mutation behavior and the mysql-utilities upsert SDK linked in the issue. Compare the requested upsert mutation with the current MySQL handler operations, then verify that a single mutation can insert or update row data as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, mysql, typescript
Domain
api, backend-api-design, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.