29
loading...
This website collects cookies to deliver better user experience
Read APIs | Without Hasura | With Hasura |
---|---|---|
Building queries & subscriptions APIs | Building & scaling an API server that supports HTTP/Websocket connections. Writing performant resolvers that will fetch authorized data, or changes to data for subscriptions. | With Hasura, we add our database to the data sources tab. We indicate which tables we want to track. Done! |
Authorization rules to ensure users can access only their images | Building authentication middleware to handle/validate incoming tokens. Building a performant authorization engine or writing authorization code per resolver that checks the permissions of a query against the database. | Enable authentication by adding JWT configuration. Add authorization rules per model. Hasura will automatically apply them in any GraphQL query or subscription that fetches data from that model. |
Write APIs | Without Hasura | With Hasura |
--- | --- | --- |
Configure an eventing system | Capture the right set of database changes into a queue. Read from the queue or set up a system for the queue to deliver events over HTTP to your handler.Enforce atomic capture and delivery reliability. | Configure which operations on which tables should generate events.Configure a webhook to the events.Hasura takes care of capture and delivery. |