Implement-content-relationships-and-references
IntermediateQuick Answer
Key Takeaways
- Define reference fields in your schema that point to specific document types
- Resolve references at query time using joins, expansions, or dereference operators
- Control resolution depth — avoid fetching deeply nested references you don't need
- Use bidirectional queries to find all documents that reference a given document
- References keep content DRY: update an author's name once, it updates everywhere