Ich möchte durch alle Seiten von mongodb REST-Antwort scrollen.Offset ist immer 0 in MongoDB Rest Service
[email protected]:/etc$ curl http://localhost:28017/bb/feeds/?limit=1
ohne Offset i korrekte Ergebnis
{
"offset" : 0,
"rows": [
{ "_id" : { "$oid" : "57254bd21d41c82413afed60" }, "variety" : "Other", "modal_price" : "2150", "commodity" : "Rice", "max_price" : "2200", "state" : "West Bengal", "min_price" : "2100", "district" : "Uttar Dinajpur", "timestamp" : "1462026632", "market" : "Islampur", "id" : "87200341", "arrival_date" : "30/04/2016" }
],
"total_rows" : 1 ,
"query" : {} ,
"millis" : 0
}
bekommen Aber wenn ich passieren offset = 2 ich immer noch das gleiche Ergebnis
[email protected]:/etc$ curl http://localhost:28017/bb/feeds/?limit=1&offset=2
{
"offset" : 0,
"rows": [
{ "_id" : { "$oid" : "57254bd21d41c82413afed60" }, "variety" : "Other", "modal_price" : "2150", "commodity" : "Rice", "max_price" : "2200", "state" : "West Bengal", "min_price" : "2100", "district" : "Uttar Dinajpur", "timestamp" : "1462026632", "market" : "Islampur", "id" : "87200341", "arrival_date" : "30/04/2016" }
],
"total_rows" : 1 ,
"query" : {} ,
"millis" : 0
}
Dank eine Million !!!! Schätzen Sie Ihre Hilfe. – maswadkar