docs: redesign notes (#8661)

* docs: redesign notes

* fix color for warning notes

* allow optional links

* show links in a note

* allow line code in notes
This commit is contained in:
Shahed Nasser
2024-08-20 14:47:24 +02:00
committed by GitHub
parent 5f310c0a00
commit 73905c14b1
16 changed files with 508 additions and 312 deletions
@@ -1,17 +1,13 @@
import { BetaBadge } from "docs-ui"
export const metadata = {
title: `${pageNumber} Manage Relationships`,
}
# {metadata.title}
# {metadata.title} <BetaBadge tooltipText="Data model relationships are in active development and may change." text="Beta" />
In this chapter, you'll learn how to manage relationships between data models when creating, updating, or retrieving records using the module's main service.
<Note type="soon" title="Important">
Data model relationships are in active development and may change.
</Note>
## Manage One-to-One and One-to-Many Relationship
When you create a record of a data model that belongs to another, pass the ID of the other data model's record in the `{relation_name}_id` property.