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 "Person"."id" AS "Person_id", "Person"."name" AS "Person_name", "Person_notes"."id" AS "Person_notes_id", "Person_notes"."label" AS "Person_notes_label", "Person_notes"."ownerId" AS "Person_notes_ownerId" FROM "person" "Person" LEFT JOIN "note" "Person_notes" ON "Person_notes"."ownerId"="Person"."id"
[ Person { id: 1, name: 'personA', __notes__: [ [Object] ] },
Person { id: 2, name: 'personB', __notes__: [ [Object] ] } ]
query: SELECT "notes"."id" AS "notes_id", "notes"."label" AS "notes_label", "notes"."ownerId" AS "notes_ownerId" FROM "note" "notes" WHERE "notes"."ownerId" IN (?) -- PARAMETERS: [1]
[ Note { id: 1, label: 'note1' } ]
I'd expect it to reuse the relationship that was preloaded instead of reselecting:
query: SELECT "Person"."id" AS "Person_id", "Person"."name" AS "Person_name", "Person_notes"."id" AS "Person_notes_id", "Person_notes"."label" AS "Person_notes_label", "Person_notes"."ownerId" AS "Person_notes_ownerId" FROM "person" "Person" LEFT JOIN "note" "Person_notes" ON "Person_notes"."ownerId"="Person"."id"
[ Person { id: 1, name: 'personA', __notes__: [ [Object] ] },
Person { id: 2, name: 'personB', __notes__: [ [Object] ] } ]
[ Note { id: 1, label: 'note1' } ]
Issue type:
[ ] question
[ ] bug report
[x] feature request
[ ] documentation issue
Database system/driver:
[x]
all?
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[ ]
postgres
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[x ]
latest
[ ]
@next
[ ]
0.x.x
(or put your version here)Steps to reproduce or a small repository showing the problem:
results:
I'd expect it to reuse the relationship that was preloaded instead of reselecting:
PR #2966
The text was updated successfully, but these errors were encountered: