docs: update imports and package names across docs (#9375)
* docs: update imports and package names across docs + reference configs * generate files * fix import * change preview to rc
This commit is contained in:
@@ -15,7 +15,7 @@ For example, if a store is deleted, its product should also be deleted.
|
||||
## Example
|
||||
|
||||
```ts
|
||||
import { model } from "@medusajs/utils"
|
||||
import { model } from "@medusajs/framework/utils"
|
||||
|
||||
const Store = model.define("store", {
|
||||
id: model.id(),
|
||||
|
||||
@@ -15,7 +15,7 @@ and have conditions.
|
||||
An example of a simple index:
|
||||
|
||||
```ts
|
||||
import { model } from "@medusajs/utils"
|
||||
import { model } from "@medusajs/framework/utils"
|
||||
|
||||
const MyCustom = model.define("my_custom", {
|
||||
id: model.id(),
|
||||
@@ -33,7 +33,7 @@ export default MyCustom
|
||||
To add a condition on the index, use the `where` option:
|
||||
|
||||
```ts
|
||||
import { model } from "@medusajs/utils"
|
||||
import { model } from "@medusajs/framework/utils"
|
||||
|
||||
const MyCustom = model.define("my_custom", {
|
||||
id: model.id(),
|
||||
@@ -54,7 +54,7 @@ export default MyCustom
|
||||
The condition can also be a negation. For example:
|
||||
|
||||
```ts
|
||||
import { model } from "@medusajs/utils"
|
||||
import { model } from "@medusajs/framework/utils"
|
||||
|
||||
const MyCustom = model.define("my_custom", {
|
||||
id: model.id(),
|
||||
|
||||
Reference in New Issue
Block a user