This handler allows you to generate GraphQL schema from an existing MySQL database.
To get started, install the handler library from NPM:
Now, you can use it directly in your Mesh config file:
Every CRUD operation has
where field in their 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;
Any) - Use existing
Poolinstance Format: modulePath#exportName
Array of String, required) - Use specific tables for your schema
Array of Object, required) - Use specific fields of specific tables:
Array of String, required)