From 7643ed048bc1c9b9e817b72073918c76f2c50bbf Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Tue, 3 Dec 2024 12:31:41 +0200 Subject: [PATCH] docs: add missing import to db operations documentation (#10390) --- .../advanced-development/modules/db-operations/page.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/apps/book/app/learn/advanced-development/modules/db-operations/page.mdx b/www/apps/book/app/learn/advanced-development/modules/db-operations/page.mdx index 481ee8f993..3431ed1ba4 100644 --- a/www/apps/book/app/learn/advanced-development/modules/db-operations/page.mdx +++ b/www/apps/book/app/learn/advanced-development/modules/db-operations/page.mdx @@ -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} @@ -38,6 +38,7 @@ import { InjectManager, MedusaContext, } from "@medusajs/framework/utils" +import { SqlEntityManager } from "@mikro-orm/knex" class HelloModuleService { // ...