MySQL

image

This handler allows you to generate GraphQL schema using graphql-compose-mysql based on a MySQL database schema or an SQL dump file.

To get started, install the handler library from NPM:

$ yarn add @graphql-mesh/mysql

Now, you can use it directly in your Mesh config file:

sources:
- name: Employees
handler:
mysql:
host: localhost
port: 3306
user: root
password: passwd
database: employees

Config API Reference

  • host (type: String, required)
  • port (type: Int, required)
  • user (type: String, required)
  • password (type: String)
  • database (type: String, required)