cult-of-coders / grapher

Grapher: Meteor Collection Joins + Reactive GraphQL like queries
https://atmospherejs.com/cultofcoders/grapher
MIT License
275 stars 53 forks source link

LinkMany $pull fix #397

Closed doronrk closed 4 years ago

doronrk commented 4 years ago

There is a limitation in minimongo's handling of $pull, so this simple new test in which a comment is removed via linkMany from its post causes the following error on the client:

Error: Unrecognized logical operator: $in
    at packages/minimongo.js?hash=bb17400235469027310b81f0d525d28875f12863:642:15
    at Array.map (<anonymous>)
    at compileDocumentSelector (packages/minimongo.js?hash=bb17400235469027310b81f0d525d28875f12863:635:48)
    at Matcher._compileSelector (packages/minimongo.js?hash=bb17400235469027310b81f0d525d28875f12863:4013:12)
    at new Matcher (packages/minimongo.js?hash=bb17400235469027310b81f0d525d28875f12863:3944:29)
    at $pull (packages/minimongo.js?hash=bb17400235469027310b81f0d525d28875f12863:3653:23)
    at packages/minimongo.js?hash=bb17400235469027310b81f0d525d28875f12863:3075:9
    at Array.forEach (<anonymous>)
    at packages/minimongo.js?hash=bb17400235469027310b81f0d525d28875f12863:3057:28
    at Array.forEach (<anonymous>)