Open razic opened 11 years ago
In hyperarchy, I tried Question.where('state !=': 'bar')
Question.where('state !=': 'bar')
and in the console I got this:
Uncaught TypeError: undefined is not a function relation.js:279 Monarch.Relations.Relation.Relation.predicateForKeyValue relation.js:279 (anonymous function) relation.js:261 Monarch.Relations.Relation.Relation.resolvePredicate relation.js:264 Selection selection.js:14 Monarch.Relations.Relation.Relation.where relation.js:156 Record.(anonymous function) record.js:129 (anonymous function) home_page.js:93 Monarch.Util.Subscription.Subscription.publish subscription.js:12 Monarch.Util.Node.Node.publishArgs node.js:27 Monarch.Util.Deferrable.Deferrable.trigger deferrable.js:57 Monarch.Util.Deferrable.Deferrable.triggerSuccess deferrable.js:31 jQuery.ajax.success fetch_request.js:39 fire jquery.js:975 self.fireWith jquery.js:1083 done jquery.js:7651 callback jquery.js:8366
figured out why... there is no inequality != operator.
!=
see https://github.com/nathansobo/monarch/blob/master/lib/monarch/expressions/predicate.coffee#L4-L10
was there a specific reason for leaving this one out?
In hyperarchy, I tried
Question.where('state !=': 'bar')
and in the console I got this: