-
|
Hi All, I encountered a problem with pinia which is really weird. We have a Model: Expertise { Now when I query the expertise repository like so: this.expertiseRepo.query().whereId('ID').first() I would expect to get the following object back: { But I am getting the following object back: { Why is appraiser object included even though I do not have a with or withAll or withAllRecursive in the query? TIA |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
One more thing I discovered is that the query works on first call. When I then change the ExpertiseObject and do a put to the backend, after that all related objects come back with the query eventhough I am not asking it to output the related objects |
Beta Was this translation helpful? Give feedback.
@danh65 I found a solution. It was pretty hard without lsing to much performance and keeping hydration correctly.
You can test it with the latest edge release
"pinia-orm": "npm:pinia-orm-edge@latest"