fix: Remove log for read only links (#7410)

This commit is contained in:
Oli Juhl
2024-05-22 22:36:23 +02:00
committed by GitHub
parent 4ee47cf9b1
commit 9a10adfd91

View File

@@ -48,7 +48,7 @@ export function generateGraphQLSchema(
let extendedEntityName =
extJoinerConfig?.linkableKeys?.[extend.relationship.foreignKey]!
if (!extendedEntityName && (!primary || !foreign)) {
if (!isReadOnlyLink && !extendedEntityName && (!primary || !foreign)) {
logger.warn(
`Link modules schema: No linkable key found for ${extend.relationship.foreignKey} on module ${extend.relationship.serviceName}.`
)