Skip to content

Instantly share code, notes, and snippets.

@manoj-singh-developer
Created March 29, 2019 10:50
Show Gist options
  • Select an option

  • Save manoj-singh-developer/e963b45b27e65167cff987e7c34f052c to your computer and use it in GitHub Desktop.

Select an option

Save manoj-singh-developer/e963b45b27e65167cff987e7c34f052c to your computer and use it in GitHub Desktop.

Revisions

  1. manoj-singh-developer created this gist Mar 29, 2019.
    2 changes: 2 additions & 0 deletions chat query mongoes
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    Mychat.find({ $or : [ { $and : [ { my_id : req.body.uid }, { user : req.body.oid } ] } , { $and : [ { my_id : req.body.oid }, { user : req.body.uid } ] } ] } ).exec(