How to set up pinia orm #10
-
Hello, I want to use Pinia with Pinia orm in vue 2 but I can not really understand how to set it up. I followed the getting started section from vuex orm: https://vuex-orm.org/guide/prologue/getting-started.html#setup, and trying to insert data but looks like it is not working well. the step I took,
and this is what I get in pinia When I follow same thing in vuex orm, I get this I also try to register to database as vuex orm but I got error says;
Thank you so much for your great work, and any suggestion is appreciated 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @nagisaando , you don't need to register anything to the database. Pinia works by design different. I haven't yet implemented a pinia store which can be handled like a vuex-orm database. Please also look at the vuex-orm-next doc ->https://next.vuex-orm.org/guide/prologue/getting-started.html#setup because pinia-orm is based on it. |
Beta Was this translation helpful? Give feedback.
Hey @nagisaando ,
you don't need to register anything to the database. Pinia works by design different. I haven't yet implemented a pinia store which can be handled like a vuex-orm database.
In most use cases you dont need such thing as database because pinia is used by composables.
Please also look at the vuex-orm-next doc ->https://next.vuex-orm.org/guide/prologue/getting-started.html#setup because pinia-orm is based on it.