Build high-quality GraphQL APIs on MySQL, instantly
GraphQL queries on MySQL
Leverage the full power of GraphQL API to interact with your MySQL database for all your read use cases.
Query exactly what you want from your MySQL tables, views, and functions.
Relationships and nesting
The GraphQL API on MySQL handles relationships between models, and queries can be nested to any depth if required.
Pagination
Easily manage large datasets with built-in pagination capabilities. Cursor-based, Relay-style, and offset-based pagination is supported natively.
Filtering
Filter query results on MySQL using advanced WHERE clauses and Boolean / logical operators like _and / _or, etc.
Sorting
Sort data based on multiple fields in MySQL tables / views and specify the sort direction (ascending or descending), making it easy to present your data.
Aggregation
Perform various aggregations to get detailed summary about your MySQL data directly within your GraphQL queries. Leverage aggregate functions in MySQL like count, sum, min, max, avg, etc.
query fetchUsersAndPosts {
users(where: { age: { _gt: 18 } }) {
id
name
posts {
title
comments {
text
}
}
}
}
GraphQL mutations on MySQL
Perform robust data manipulation operations on your MySQL database with GraphQL mutations. Insert, update, or delete data in MySQL via Hasura’s native queries.
mutation {
insert_artist(id: 100, name: "New Artist") {
ArtistId
Name
}
}
High-performance GraphQL APIs, at scale
Hasura takes a domain-driven approach to GraphQL, where a GraphQL query is compiled to a query on a domain model (a database query or existing APIs) resulting in superior API performance.
Hasura leverages the goodness of MySQL to create efficient GraphQL queries.
Compile vs. resolve
Hasura avoids the GraphQL N+1 query problem by compiling a query instead of resolving. This compiler-based approach allows Hasura to form a single SQL query for a GraphQL query of any depth and avoids the N+1 problem in GraphQL.
Predicate pushdown SQL to MySQL
Hasura filters data at the source with a predicate pushdown of SQL queries to MySQL.
Hasura’s GraphQL APIs are faster than handwritten subgraphs on top of MySQL
Learn more about how Hasura does high-performance domain-driven APIs.
Add caching to existing MySQL APIs for faster response times
Get up to 10x faster API performance on MySQL with end-to-end caching, scaling vertically and horizontally.
Hasura has metadata about the data models across data sources, and the authorization rules at the application level, which helps provide end-to-end caching.
Production-ready APIs on MySQL, from day one
Observability
Monitor for known issues by debugging and analyzing metrics from your Hasura instance.
API security
Secure your MySQL APIs with tools including allow list, multiple JWT secrets, API rate limits, and more.
Authorization
Make granular read and write access control easy to configure on your MySQL database with a built-in authorization engine.
Frequently Asked Questions
Can’t find the answer you are looking for? Reach out to our team, and we can help you select the Hasura plan that’s right for you.
Contact Us
If you have any more questions about pricing, we’re here to help.
How to optimize GraphQL queries on MySQL?
What security measures are in place when using GraphQL with MySQL?
Can I combine data from MySQL and other sources in a single GraphQL query?
Can I use GraphQL with existing MySQL databases?
Contact Us
If you have any more questions about pricing, we’re here to help.