Closed Michel-HaiRUn closed 1 year ago
Please read the note in the docs: https://pinia-orm.codedredd.de/guide/repository/retrieving-data#retrieving-data 😉
Sorry i don't know if don't know how to read the docs but i didn't find any instruction of how to retrieve all model without the relationships :/
i tried userRepo.get() ``Error .get() is not a function
trieduserRepo.all()
its retrieve all models with relationships
Environment
Linux
v18.14.2
3.2.47
yarn@1.22.19
Vite
Reproduction
User Model
Posts Model
data object used
user Store
Describe the bug
After the data is inserted with save; my new users, posts pinia store created look like this:
users
posts
and from my getters in my user store the result of the userRepo.all() is:
The posts is retrieved to when in the docs
.all()
retrieve only the model without relationshipsAdditional context
No response
Logs