Comments (8)
@crsssl, thanks for pointing this out. I can replicate, and from what I can tell, it's actually due to this issue with Meteor. Autovalues are added by C2 in deny functions and virtual fields are added by transforms. Due to the Meteor issue, autovalues won't work if you specify a transform, which includes using virtual fields.
The good news is that the fix to this was merged into Meteor devel branch today, so the next Meteor release will have it.
from meteor-collection2.
That is good news. Thanks for this.
from meteor-collection2.
@crsssl, based on my test, this seems to be working now in Meteor 0.7.0. Let me know if you find otherwise.
from meteor-collection2.
Confirmed. Seems to be working.
from meteor-collection2.
Hi Eric.
I was wondering if $addtoset and $pull operators were now supported as
well. (I seem to recall they weren't when we last discussed this.) If not,
are these on your timeline?
Thanks.
On Tue, Dec 17, 2013 at 6:24 PM, Eric Dobbertin [email protected]:
@crsssl https://github.com/crsssl, based on my test, this seems to be
working now in Meteor 0.7.0. Let me know if you find otherwise.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/29#issuecomment-30802166
.
from meteor-collection2.
Supported by autoValue? Or just in general?
As far as I know, all operators are validated correctly by SimpleSchema. There are a few validations that SimpleSchema can't do, like testing min/max for $inc, but those will hopefully be validated by collection2 eventually.
from meteor-collection2.
In general. Yeah, I'm not sure which project it was referring to. (I had a bunch of //TODO: when $addtoset and $pull are supported
comments littering my code, so this reminded me of the issue.
from meteor-collection2.
All tested and it looks like there isn't an issue. Probably the way I was coding it up.
Thanks again for the input.
from meteor-collection2.
Related Issues (20)
- [3.0.3] Upsert fails even if document inserted would match the schema definition HOT 2
- Using $pop to remove an array item causes an error HOT 2
- Using the all positional operator $[] in nested arrays causes an error HOT 4
- Upsert no longer works in 3.0.5
- Duplicate key errors not correctly reporting (no Meteor.Error) HOT 3
- Migration from Meteor 1.4 to 1.9, Collection 2 from 2.10 to 3.0, SimpleSchema with meteor-collection2 error on unique option HOT 3
- Can't update the collection HOT 3
- Dynamic Schema with Validation HOT 10
- Is it possible to create field type that takes key and value pair? HOT 4
- Writing a robust updatedAt autoValue HOT 4
- CONTRIBUTING.md is missing HOT 1
- Breaking change in v3.2.0 for extending schemas HOT 2
- Delete the name of collections in error messages HOT 5
- Question: A way to log all errors without actually throwing them? HOT 1
- Does not work with `$[]` positional operator HOT 1
- relplace lodash with underscore HOT 3
- FLE-Encryption HOT 3
- Expose defaultCleanOptions HOT 10
- Apply `defaultValue` on `fetch` HOT 6
- Stub exceptions are logged instead of thrown in Meteor Methods, preventing throwStubExceptions from working as intended
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meteor-collection2.