This section holds tutorials: practical walkthroughs that take you through a task or feature in order, with commands, configuration, and code you can follow along with. They are aimed at learning and production-style setup rather than only skimming a finished app.
If you prefer a ready-made project you can clone and run with minimal narrative, see the demos section instead.
If you are new to SurrealDB, you may also want Getting started and the SurrealQL reference.
Getting started
Define a schema in SurrealDB - build up a schemafull table with fields, assertions and indexes
Query SurrealDB from Postman - drive the HTTP endpoints from a REST client
Connect to SurrealDB via ngrok - expose a local instance to a remote client
Use SurrealDB in GitHub Actions - run a database alongside your CI jobs
Authentication
Integrate Auth0 with SurrealDB - verify Auth0 tokens with a record access method
Integrate AWS Cognito with SurrealDB - the same pattern with a Cognito user pool
AI and search
Build an AI agent with Python - an agent that queries the database as a tool
Build a GenAI chatbot with Graph RAG - retrieval over a graph rather than a flat vector store
Build a knowledge graph for AI - model entities and relations for retrieval
Build a minimal LangChain chatbot - the smallest working LangChain setup
Implement semantic search in Rust - embeddings, a vector index, and search from the Rust SDK
Real-time
Build a real-time presence app - live queries driving who is online