docs: general updates after 2.5.0 update (#11402)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-02-11 18:26:21 +02:00
1 parent ca486aa7ed
commit 5cb44d364d
17 files changed
+11576 -11565

No files matched your search

@@ -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",
})
}
}),
},
})
```