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:
@@ -67,7 +67,7 @@ The `unique` method indicates that a property’s 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", {
|
||||
|
||||
Reference in New Issue
Block a user