docs: document JSON properties (#13099)

This commit is contained in:
Shahed Nasser
2025-07-31 12:22:32 +03:00
committed by GitHub
parent 1c1e1c6aa2
commit 54a74b0215
14 changed files with 1072 additions and 17 deletions
@@ -220,7 +220,7 @@ export default Post
### json
The `json` method defines a property whose value is a stringified JSON object.
The `json` method defines a property whose value is stored as a stringified JSON object in the database.
For example:
@@ -237,6 +237,8 @@ const Post = model.define("post", {
export default Post
```
Learn more in the [JSON Properties](../json-properties/page.mdx) chapter.
### array
The `array` method defines an array of strings property.