Created
December 22, 2011 14:15
-
-
Save mattapperson/1510436 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 json = require("com.irlgaming.jsondb"); | |
| var collection = json.factory("contacts"); | |
| collection.save({ | |
| nickname:"Jon" | |
| full_name:"John Smith", | |
| email:"[email protected]", | |
| phone:1234567889, | |
| address:"13 Dobney Avenue, Wagga Wagga, NSW, Australia, 2650", | |
| loc:{lat:-35.110, lng:147.377}, | |
| timestamp:(new Date()).getTime() | |
| }); | |
| collection.commit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment