[15:53:22] <m4tthumphrey> ok great! im not sure if this is possible in mongo: i have a collection of documents, one of the field contains an array of "patterns" (for a better word) which i would like to match against the begins with operator. now normally in mongo you query like: field_name: { operator: value } but a) i would need to do: value: { operator: field_name } and b) within an array
[15:56:41] <m4tthumphrey> is it actually possible to use the regex operator where the pattern is in the document?
[16:05:18] <m4tthumphrey> in mysql it would be `where "subject" like field_name` field_name would contain the pattern such as "this is a %"
[18:54:33] <Gopa> I wanted to user MongoDB to store logged in users tokens(OAuth passport.js) into database, I have read the random documentations and built this[1] but this is not saving into my database, Can anyone please guide me ?