[10:42:41] <ocx32> hi all, can i use $ne like this on strings? mycol.find_one( { 'ch': {'chName' : { "$ne": myVar } } } ) ?
[10:43:03] <ocx32> i want to return a row that does not match a chName with myVar
[19:06:52] <yolan> Hello I have a question, I am building a food app to learn nosql and nodejs. I have a "ingredient" model, and now I want to make an items model ("burger" for example) that contains an array of ingredient as property. How can I set that up using mongoose ?
[19:13:59] <yolan> Same thing for menu, a menu is composed of multiple items
[19:15:12] <yolan> here is what I have for ingredient : http://ix.io/2eTc and for items : http://ix.io/2eTd
[19:26:48] <yolan> Should I make both a model and shema for ingredient?
[19:27:43] <yolan> and in that case, how can I link the shema with the model ?
[22:19:43] <Zta77> Hi, I'm using PojoCodecProvider to serialize my custom models. I'm getting this error "org.bson.codecs.configuration.CodecConfigurationException: Cannot find a public constructor for 'User'." but it does have a public ctor.
[22:19:51] <Zta77> I think the real problem is that I don't have an empty no-arg ctor. But that's because all my fields are final, so I've instead added a full-blown ctor that sets all fields and annotated it with @JsonCreator. Shouldn't this work?