feat: define link util (#7931)

* feat: define link util

* handle pluralized fieldAlias for isList

* serviceName ar reference

* finalize

* todo

* WIP

* finalize

* fix tests

* update typings

* fix Module

* linkable

* update errors
This commit is contained in:
Adrien de Peretti
2024-07-04 10:37:30 +02:00
committed by GitHub
parent 9b1688944e
commit 41c4307fc7
26 changed files with 523 additions and 341 deletions
@@ -5,7 +5,7 @@ import {
} from "@medusajs/types"
import {
ContainerRegistrationKeys,
ModulesSdkUtils,
createPgConnection,
promiseAll,
} from "@medusajs/utils"
@@ -41,7 +41,7 @@ export async function initModules({
let shouldDestroyConnectionAutomatically = !sharedPgConnection
if (!sharedPgConnection) {
sharedPgConnection = ModulesSdkUtils.createPgConnection({
sharedPgConnection = createPgConnection({
clientUrl: databaseConfig.clientUrl,
schema: databaseConfig.schema,
})