Update README.md

Added limit:3 for GeoPoint find function example
This commit is contained in:
cgole 2013-06-28 14:01:49 -07:00 committed by Ritchie
parent 3a15d7db07
commit 7f544576dd
1 changed files with 1 additions and 1 deletions

View File

@ -742,7 +742,7 @@ Find the 3 nearest coffee shops.
CoffeeShop.attachTo(oracle); CoffeeShop.attachTo(oracle);
var here = new GeoPoint({lat: 10.32424, lng: 5.84978}); var here = new GeoPoint({lat: 10.32424, lng: 5.84978});
CoffeeShop.find({where: {location: {near: here}}}, function(err, nearbyShops) { CoffeeShop.find({where: {location: {near: here}}, limit:3}, function(err, nearbyShops) {
console.info(nearbyShops); // [CoffeeShop, ...] console.info(nearbyShops); // [CoffeeShop, ...]
}); });