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 authored and GitHub committed 2024-07-04 10:37:30 +02:00
1 parent 9b1688944e
commit 41c4307fc7
26 files changed
+523 -341

No files matched your search

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