Update README.md
Added limit:3 for GeoPoint find function example
This commit is contained in:
parent
3a15d7db07
commit
7f544576dd
|
@ -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, ...]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue