Created
July 14, 2015 17:35
-
-
Save gentunian/891d902b6969f6758ab1 to your computer and use it in GitHub Desktop.
added
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
< var t = new Mongo.Collection(null); | |
> undefined | |
< t.insert({ble: 1}) | |
> "EvZXebTK3HdhJPNCY" | |
< t.insert({ble: 2}) | |
> "GfeBhBptZxYruApqo" | |
< t.insert({ble: 4}) | |
> "gmg8kPEWzyiC2hBys" | |
< var c = t.find(); | |
> undefined | |
< c.observe({added: function (d){console.log(d);}}) | |
> VM105317:2 Object {ble: 1, _id: "EvZXebTK3HdhJPNCY"} | |
> VM105317:2 Object {ble: 2, _id: "GfeBhBptZxYruApqo"} | |
> VM105317:2 Object {ble: 4, _id: "gmg8kPEWzyiC2hBys"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment