Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to extend an initialized store? #302

Open
yostools opened this issue Oct 5, 2018 · 1 comment
Open

How to extend an initialized store? #302

yostools opened this issue Oct 5, 2018 · 1 comment

Comments

@yostools
Copy link

yostools commented Oct 5, 2018

Is there a way to change or extend a store after initialization by adding changed or new record type definitions?

@gr0uch
Copy link
Member

gr0uch commented Oct 10, 2018

Hi, sorry for delay. Yes, I would recommend calling store.disconnect, changing the record type definitions on store.recordTypes, then reconnecting with store.connect. Reconnecting isn't really necessary, just advised for some adapters that may need setup like Postgres. You could just modify store.recordTypes without doing that. I am curious what the use case may be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants