docs: general updates after 2.5.0 update (#11402)

This commit is contained in:
Shahed Nasser
2025-02-11 18:26:21 +02:00
committed by GitHub
parent ca486aa7ed
commit 5cb44d364d
17 changed files with 11576 additions and 11565 deletions
@@ -33,7 +33,7 @@ const { data } = await query.graph({
fields: ["*"],
context: QueryContext({
lang: "es",
})
}),
})
```
@@ -58,7 +58,7 @@ import Author from "./models/author"
class BlogModuleService extends MedusaService({
Post,
Author
Author,
}){
// @ts-ignore
async listPosts(
@@ -125,8 +125,8 @@ const { data } = await query.graph({
lang: "es",
author: QueryContext({
lang: "es",
})
})
}),
}),
})
```
@@ -144,7 +144,7 @@ import Author from "./models/author"
class BlogModuleService extends MedusaService({
Post,
Author
Author,
}){
// @ts-ignore
async listPosts(
@@ -168,7 +168,7 @@ class BlogModuleService extends MedusaService({
author: {
...post.author,
name: isAuthorLangEs ? post.author.name + " en español" : post.author.name,
}
},
}
})
}
@@ -201,8 +201,8 @@ const { data } = await query.graph({
context: {
post: QueryContext({
lang: "es",
})
}
}),
},
})
```