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:
Shahed Nasser
2024-10-01 12:03:42 +03:00
committed by GitHub
parent c726ed54f5
commit 2e16949979
196 changed files with 1379 additions and 1491 deletions

View File

@@ -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(),

View File

@@ -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(),