docs: additions and improvements to modules and DML documentation (#7854)

* docs: additions and improvements to modules and DML documentation

* small wording fix
This commit is contained in:
Shahed Nasser
2024-07-01 10:26:40 +03:00
committed by GitHub
parent 72f7500c84
commit b62f23ea00
7 changed files with 66 additions and 11 deletions
@@ -67,7 +67,7 @@ The `unique` method indicates that a propertys value must be unique in the da
For example:
export const uniqueHighlights = [
["5", "unique", "Configure the `email` property to allow unique values only."]
["4", "unique", "Configure the `email` property to allow unique values only."]
]
```ts highlights={uniqueHighlights}
@@ -20,7 +20,11 @@ The `searchable` method of the `model` utility indicates that a `text` property
For example:
```ts
export const searchableHighlights = [
["4", "searchable", "Define the `name` property as searchable."]
]
```ts highlights={searchableHighlights}
import { model } from "@medusajs/utils"
const MyCustom = model.define("my_custom", {