@medusajs/link-modules 0.2.12-preview-20240522180517 → 0.2.12-preview-20240522210548

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,7 +24,7 @@ function generateGraphQLSchema(joinerConfig, primary, foreign, { logger } = { lo
24
24
  }
25
25
  const extJoinerConfig = modules_sdk_1.MedusaModule.getJoinerConfig(extend.relationship.serviceName);
26
26
  let extendedEntityName = extJoinerConfig?.linkableKeys?.[extend.relationship.foreignKey];
27
- if (!extendedEntityName && (!primary || !foreign)) {
27
+ if (!isReadOnlyLink && !extendedEntityName && (!primary || !foreign)) {
28
28
  logger.warn(`Link modules schema: No linkable key found for ${extend.relationship.foreignKey} on module ${extend.relationship.serviceName}.`);
29
29
  continue;
30
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/link-modules",
3
- "version": "0.2.12-preview-20240522180517",
3
+ "version": "0.2.12-preview-20240522210548",
4
4
  "description": "Medusa Default Link Modules Package and Definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -39,9 +39,9 @@
39
39
  "typescript": "^5.1.6"
40
40
  },
41
41
  "dependencies": {
42
- "@medusajs/modules-sdk": "1.13.0-preview-20240522180517",
43
- "@medusajs/types": "1.12.0-preview-20240522180517",
44
- "@medusajs/utils": "1.12.0-preview-20240522180517",
42
+ "@medusajs/modules-sdk": "1.13.0-preview-20240522210548",
43
+ "@medusajs/types": "1.12.0-preview-20240522210548",
44
+ "@medusajs/utils": "1.12.0-preview-20240522210548",
45
45
  "@mikro-orm/core": "5.9.7",
46
46
  "@mikro-orm/postgresql": "5.9.7",
47
47
  "awilix": "^8.0.0"