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

[feature] Custom builds or Disable Schema validation #385

Closed
natew opened this issue Dec 1, 2017 · 2 comments
Closed

[feature] Custom builds or Disable Schema validation #385

natew opened this issue Dec 1, 2017 · 2 comments

Comments

@natew
Copy link
Contributor

natew commented Dec 1, 2017

Actual use case for me is Schemas. It's been a year we've been in development, and there are days where I change the schema ~10 times, and end up clearing data each time.

I do see a way to automate writing migrations, but then we'd be committing new versions/migrations, a lot.

I do want migrations once we go into production, but for development it's enough of a nuisance to want to be able to disable them.

Just documenting the desire here.

@natew natew changed the title [feature] Custom builds / Disable features [feature] Custom builds or Disable Schema validation Dec 1, 2017
@pubkey
Copy link
Owner

pubkey commented Dec 4, 2017

The schema-validation is required. At the moment the documents do not match the schema, you will have big trouble with errors that are hard to debug. Many things like the proxy-getters and the QueryChangeDetection can only work I the schema is valid. Therefore this 'feature' is made especially to use in developement. At the moment you ship code to prod and find out that the schema does not match your data, its too late.

I recommend to use the memory-adapter for dev, so you do not have to clear up data after each dev-cycle.

One think I could do was allowing the recreation of a collection, if it does not contain any documents. See

Hope this helps a bit.

@natew
Copy link
Contributor Author

natew commented Dec 5, 2017

Actually this is a decent solution -- can easily delete all docs in dev mode. Thanks a ton.

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

No branches or pull requests

2 participants