PerchQueryBuilder tries to select the SubModel.value field in the database (incorrectly even. EDIT: This is a typeorm bug), while it is not decorated with a @Column decorator:
SELECT "PrimaryEntity"."id" AS "PrimaryEntity_id",
PrimaryEntity_sub.value
FROM "typeorm"."primary_entity" "PrimaryEntity"
LEFT JOIN "typeorm"."sub_entity" "PrimaryEntity_sub"
ON "PrimaryEntity_sub"."primaryEntityId" = "PrimaryEntity"."id"
(this query is a trimmed down query from something else)
To Reproduce
See above
Expected behavior
The SubEntity.value field isn't included in the query.
Describe the bug I have these entities:
And graphql models:
If I execute the following query:
PerchQueryBuilder tries to select the
SubModel.value
field in the database (incorrectly even. EDIT: This is a typeorm bug), while it is not decorated with a@Column
decorator:(this query is a trimmed down query from something else)
To Reproduce See above
Expected behavior The
SubEntity.value
field isn't included in the query.