I know that i can serialize IMongoQuery object to Json and use it in the future, but how can i serialize query with take and skip functions inside? I use official c# mongoDb driver. Give me an advice please.
You can't. The result from your query is a cursor, and on that cursor you call .skip()
and .limit()
.
You can serialize a query, but you can't serialize a cursor.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.