Tutorials¶
Complete, tested walkthroughs. Each tutorial is a standalone page with install steps, schema, data, queries, updates, and expected results.
Facets are relationship properties¶
A facet is a key/value property on an edge, not on a node:
Here acted_in is the relationship, and role/billing describe that
specific movie→actor edge. Query them with @facets(...):
Facets are a DQL feature. GraphQL in 0.2.1 does not expose facet syntax; model relationship properties as nodes or separate predicates if you need them in GraphQL.
Choose a tutorial¶
- Movies with DQL: people, genres as nodes, relationships, cast facets.
- Movies with GraphQL: SDL, nested mutations, relationship queries, updates.
- TODO app with DQL: projects, tasks, tags, dates, assignment facets.
- TODO app with GraphQL: GraphQL project/task mutations and queries.
- Orders with numeric facets: line-item facets, nested relationships, reverse lookups.
How the tutorials are built¶
Each tutorial opens with a complete program for Python, TypeScript, and Rust: install, create an instance, apply the schema, add data, run a query, and print the result. The C tab shows the ABI lifecycle and links to the full C guide.
The per-language API is covered in Embedding; the language and type reference is in DQL and GraphQL.
Common gotchas¶
- DQL type declarations need one field per line.
- Mutations need a newline or
#after the final.before}. - Scalar predicates auto-derive; UID relationships, reverse edges, indexes, and types need schema.
type(Task)requiresdatastreamdb.typeedges unless the data came from a GraphQL mutation.- GraphQL subscriptions are poll-based; see the DQL and GraphQL reference.