MySQL
GraphQL Mesh v0 documentation (superseded by v1): Generate GraphQL schema from MySQL database with GraphQL Mesh. Learn how to use the MySQL handler and its powerful 'where' field.

This handler allows you to generate GraphQL schema from an existing MySQL database.
To get started, install the handler library:
Now, you can use it directly in your Mesh config file:
How does where work?
Every CRUD operation has where field in its input, so you can see all the columns of a table.
where works like below;
This GraphQL operation will send the following query to your MySQL database;
Config API Reference
host(type:String) - The hostname of the database you are connecting to. (Default: localhost)port(type:Int) - The port number to connect to. (Default: 3306)localAddress(type:String) - The source IP address to use for TCP connectionuser(type:String) - The MySQL user to authenticate aspassword(type:String) - The password of that MySQL userdatabase(type:String) - Name of the database to use for this connectionssl(type:Object) - SSL Options for your MySQL connection:rejectUnauthorized(type:Boolean) - Default: trueca(type:String) - Path to your CA
pool(type:Any) - Use existingPoolinstance Format: modulePath#exportNametables(type:Array of String, required) - Use specific tables for your schematableFields(type:Array of Object, required) - Use specific fields of specific tables:table(type:String, required)fields(type:Array of String, required)