Skip to content

Instantly share code, notes, and snippets.

@guillaumerxl
Last active August 29, 2015 14:04
Show Gist options
  • Save guillaumerxl/c836e73b89deb6191bc3 to your computer and use it in GitHub Desktop.
Save guillaumerxl/c836e73b89deb6191bc3 to your computer and use it in GitHub Desktop.

Revisions

  1. guillaume-dev renamed this gist Jul 23, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. guillaume-dev revised this gist Jul 23, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Server side
    Original file line number Diff line number Diff line change
    @@ -6,4 +6,4 @@ GroupContacts.find({
    group: 'Intern'
    }
    }
    });
    }).fetch();
  3. guillaume-dev revised this gist Jul 23, 2014. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions Server side
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    GroupContacts.find({
    _id: '78895dsdfq45qfq',
    }, {
    list: {
    $elemMatch: {
    group: 'Intern'
    }
    }
    });
  4. guillaume-dev created this gist Jul 23, 2014.
    13 changes: 13 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    {
    _id: '78895dsdfq45qfq',
    list: [{
    name:'Bob',
    group: 'Intern'
    },{
    name:'Joe',
    group: 'Extern'
    }, {
    name:'Gertrude',
    group: 'Intern'
    }]
    }