Hasura enables you to connect to MySQL databases to automatically build a rich GraphQL API based on your database schema.
At present, our MySQL integration is available in Hasura Cloud and Docker environments, where you can run Hasura GraphQL Engine and connect the MySQL GraphQL Data Connector to it. For more information on GraphQL Data Connectors check out our blog post on the topic.
To get started with MySQL:
- In Hasura Cloud, check out our Getting Started with MySQL in Hasura Cloud guide
- In a Docker environment, check out our Getting Started with Docker guide
- Hasura GraphQL Engine
- Hasura supports most databases with standard implementations of MySQL 8.0 and higher including: Amazon RDS, Amazon Aurora, Google Cloud SQL and Digital Ocean.
- PlanetScale and certain other providers are unsupported.
Hasura currently supports queries, mutations (INSERT, UPDATE, DELETE), table relationships, remote relationships and permissions on MySQL.
Note that Hasura doesn't yet support the ability to modify the database schema for MySQL, so the database you connect to should already contain tables and data. You should also ideally have access to it outside of Hasura to modify the schema.
Coming soon for MySQL
- Check out the Getting Started with Docker guide.
- If you're interested in learning more about MySQL, check out this tutorial from our Learn site.