-
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
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~
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels