-
Notifications
You must be signed in to change notification settings - Fork 41
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
wither::Migration extensions #70
Comments
Hmm, we may be able to implement a Thoughts? |
that sounds cool. how can we solve the problem of our |
Hmm, do you mind elaborating on your question a bit? |
#[derive(Model)]
struct User {
pub x: Vec<Inner>
} now say i want to change user to
i need to write some code to transform this in a migration, and i also need to keep |
I see. Yea, they should be able to just exist as part of the model's You would only really need to keep |
this sounds good. my only concern is the user having to deal with a lot of bson boilerplate like parsing some field as some type and then unwrap()ing it and so on |
I see that via an IntervalMigration I can set/unset fields in documents that pass a filter. Is there yet a way to transform data in a field from one format to another?
I think this may get tricky due to the fact that the change to the
struct
would cause a deserialisation error on the old version. If there's a good solution I'd be happy to work on it.The text was updated successfully, but these errors were encountered: