You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
query: SELECT "Business"."id" AS "Business_id", "Business"."created_at" AS "Business_created_at", "Business"."updated_at" AS "Business_updated_at", "Business"."deleted_at" AS "Business_deleted_at", "Business"."name" AS "Business_name", "Business"."active" AS "Business_active", "Business"."integrableType" AS "Business_integrableType", "Business"."integrableId" AS "Business_integrableId" FROM "businesses" "Business" WHERE ( (("Business"."id" = $1)) ) AND ( "Business"."deleted_at" IS NULL ) LIMIT 1 -- PARAMETERS: ["8cc49d2f-a2cf-416f-891b-bc40f21a13bd"]
[AllExceptionsFilter] EntityMetadataNotFoundError: No metadata for "null" was found.
at DataSource.getMetadata (/Users/macbookpro/Projects/nb/business-ms/src/data-source/DataSource.ts:450:30)
at Repository.get metadata [as metadata] (/Users/macbookpro/Projects/nb/business-ms/src/repository/Repository.ts:53:40)
at Repository.findOne (/Users/macbookpro/Projects/nb/business-ms/src/repository/Repository.ts:597:42)
at BusinessPolymorphicRepository.<anonymous> (/Users/macbookpro/Projects/nb/business-ms/node_modules/typeorm-polymorphic/dist/polymorphic.repository.js:101:68)
at Generator.next (<anonymous>)
at /Users/macbookpro/Projects/nb/business-ms/node_modules/typeorm-polymorphic/dist/polymorphic.repository.js:8:71
at new Promise (<anonymous>)
at __awaiter (/Users/macbookpro/Projects/nb/business-ms/node_modules/typeorm-polymorphic/dist/polymorphic.repository.js:4:12)
at BusinessPolymorphicRepository.findPolymorphs (/Users/macbookpro/Projects/nb/business-ms/node_modules/typeorm-polymorphic/dist/polymorphic.repository.js:99:16)
at /Users/macbookpro/Projects/nb/business-ms/node_modules/typeorm-polymorphic/dist/polymorphic.repository.js:85:78
How to implement nullable relationship?
I'm implementing this package with NestJS, all work fine except quering when relationship is null.
Entity schema:
My repository find looks like:
Throw this exception:
Dependencies:
Note:
I'm setting eager: false in all places and anyway this query the relationship
The text was updated successfully, but these errors were encountered: