
Hasura Has a Free API — Here's How to Get Instant GraphQL on Any Database
Why Hasura? Hasura gives you an instant GraphQL API on top of your existing database . Point it at PostgreSQL, MySQL, SQL Server, or BigQuery — get a full GraphQL API with subscriptions, permissions, and remote joins in seconds. Hasura Cloud free tier: 60 requests/minute, 1 GB data passthrough/month. Getting Started Option 1: Hasura Cloud (Free) Sign up at hasura.io — launch a free project in 30 seconds. Option 2: Docker docker compose up -d # docker-compose.yml: # hasura/graphql-engine with HASURA_GRAPHQL_DATABASE_URL pointing to your PostgreSQL Connect Database & Get API Open Hasura Console (localhost:8080 or cloud URL) Connect your PostgreSQL Click "Track" on tables → instant GraphQL API! Query Examples GraphQL Queries # Get all users with their orders query { users ( order_by : { created_at : desc }, limit : 10 ) { id name email orders ( where : { status : { _eq : "paid" }}) { id total created_at } } } # Aggregate: total revenue per user query { users { name orders_aggregate ( wher
Continue reading on Dev.to Webdev
Opens in a new tab

