-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc.cursor.id ~= cbson.uint(0) #21
Comments
What? |
sorry for |
when i use 'aggregate' to search data, then program runs err. |
Can you provide an example of how you use aggregate, and what error it returns? |
the pipeline: This is copy from collection.luafunction _M.aggregate(self, pipeline, opts) local doc, err = self._db:cmd( if opts.explain then -- collection --############### i debug it here
|
function _M.aggregate(self, pipeline, opts)
..............................
-- cursor
return cursor.new(self, {}, {}, false, doc.cursor.id):add_batch(doc.cursor.firstBatch)
end
OR
function _M.aggregate(self, pipeline, opts)
..............................
-- cursor
return cursor.new(self, {}, {}, false, cbson.uint(doc.cursor.id)):add_batch(doc.cursor.firstBatch)
end
The text was updated successfully, but these errors were encountered: