We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b03686 commit 297fc12Copy full SHA for 297fc12
lib/mongo.ex
@@ -1547,7 +1547,14 @@ defmodule Mongo do
1547
|> Enum.at(0)
1548
1549
{_, params} = Keyword.pop_first(cmd, command)
1550
- collection = Keyword.get(cmd, command)
+
1551
+ {collection, params} = case command do
1552
+ :getMore ->
1553
+ Keyword.pop_first(params, :collection)
1554
1555
+ _other ->
1556
+ {Keyword.get(cmd, command), params}
1557
+ end
1558
1559
collection =
1560
case is_binary(collection) do
0 commit comments