Archives: FAQs

Q. What is SurrealDB and why should I use it?

A: SurrealDB is a modern, multi-model database that supports SQL-like queries along with graph and document storage. You should use it because it reduces complexity by combining features of relational and NoSQL databases in one system.

A: What are the pros and potential trade-offs of using Hasura?

Pros: Fast setup; minimal server code. GUI for schema management. Real-time GraphQL operations and live queries/subscriptions. Trade-offs / Considerations: Less flexibility for very custom business logic (you may need remote schemas or actions). Security & authorization need to be properly configured externally or via Hasura features. The free / tiny database tiers may have performance […]

Q: How does tracking existing tables or relationships work?

A: If your database already has tables, you can use the “Untracked Tables or Views” section in Hasura’s UI to track them, so they become part of the GraphQL schema. Similarly, you can establish foreign key relationships so GraphQL queries can traverse them.

Q: What does “no-code” mean in the context of Hasura + GraphQL?

A: It means that you can spin up a GraphQL API without writing resolvers or server logic manually. Hasura introspects your PostgreSQL database schema, auto-generates queries, mutations, and real-time subscriptions, and provides a GUI to manage tables/relationships.

Q: How does the subscription get triggered in the example?

 A: In the example, a createUser mutation is implemented. Whenever this mutation is called, the code publishes a “newUser” event via the PubSub, so any client subscribed to that event receives the new user data in real time.

Back To Top