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

Update/UpdateById and Set/SetById don't honor newly defined filterable properties #2

Open
davidLeonardi opened this issue Jul 25, 2017 · 1 comment

Comments

@davidLeonardi
Copy link

Defining new filterable properties on a model while performing update/set operations does not result in the creation of filterable properties in the actual datamodel.
This only occurs in .push() but should also occur in .update() or .set() as we might be introducing new values/properties.

For example, assuming the following code:
const users = modelDenormalizer('users'); users.filterableProperty('photo'); return users.updateById(${uid}, {photo})
Will not result into a lookup table called photoUsers, but will if i use push().

@davidLeonardi
Copy link
Author

davidLeonardi@25e8304 to see what i did for update

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

1 participant