Skip to content

Commit

Permalink
docs: add missing import to db operations documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser authored Dec 2, 2024
1 parent ac79585 commit 91de616
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ So, to run database queries in a service:
For example, in your service, add the following methods:

export const methodsHighlight = [
["11", "getCount", "Retrieves the number of records in `my_custom` using the `count` method."],
["18", "getCountSql", "Retrieves the number of records in `my_custom` using the `execute` method."]
["12", "getCount", "Retrieves the number of records in `my_custom` using the `count` method."],
["19", "getCountSql", "Retrieves the number of records in `my_custom` using the `execute` method."]
]

```ts highlights={methodsHighlight}
Expand All @@ -38,6 +38,7 @@ import {
InjectManager,
MedusaContext,
} from "@medusajs/framework/utils"
import { SqlEntityManager } from "@mikro-orm/knex"

class HelloModuleService {
// ...
Expand Down

0 comments on commit 91de616

Please sign in to comment.