when I used index like “create_time.seconds” as a cursor field to query data, the program can't get the correct next page token, see the source code:
cursorData[i] = bson.DocElem{Name: cf, Value: doc[cf]}
It just assign "create_index.seconds" to doc and matching doc map, I think it should be look like this:
if cf == "create_time.seconds" {
sonM, _ := doc["create_time"].(bson.M)
cursorData[i] = bson.DocElem{Name: cf, Value: sonM["seconds"]}
} else {
cursorData[i] = bson.DocElem{Name: cf, Value: doc[cf]}
}
Just a example~
when I used index like “create_time.seconds” as a cursor field to query data, the program can't get the correct next page token, see the source code:
It just assign "create_index.seconds" to doc and matching doc map, I think it should be look like this:
Just a example~