No relations in findOneById
Hi folks!
I'm not sure if it's a bug or if I miss something. I'm trying to get related items to delete them before deleting the main one. Here is my yaml config:
And here is a code I use to get a Project with related images:
where projectIdNum = 1
But the returned object looks like that:
There are no images and I'm sure that there are ones. Database:
Am I doing something wrong?
Best regards
3 Replies
For now I just use a workaround like that
@witek thank you so much for reporting this issue. Indeed it was a bug on
findOnById()
: the relations were not loaded. We fixed it, please update your @mnfst/sdk
to version 1.2.1 ! Cheers 🙂Great, thanks for fix and info.