Skip to content

Commit 6b3be9d

Browse files
authored
Merge pull request #84 from joeapearson/master
Thank you!
2 parents 0e14878 + daa4b23 commit 6b3be9d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lib/mongo.ex

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,12 +1193,14 @@ defmodule Mongo do
11931193
end
11941194

11951195
@doc """
1196-
Convenient function to creates new indexes in the collection `coll`. The `indexes` parameter
1197-
is a keyword list with all options for creating indexes in the MongoDB.
1198-
See [options](https://docs.mongodb.com/manual/reference/command/createIndexes/#dbcmd.createIndexes) about the
1199-
details of each parameter.
1196+
Convenient function to creates new indexes in the collection `coll`. The `indexes` parameter is a
1197+
list with all options for creating indexes in the MongoDB.
1198+
1199+
See
1200+
[options](https://docs.mongodb.com/manual/reference/command/createIndexes/#dbcmd.createIndexes)
1201+
about the details of each parameter.
12001202
"""
1201-
@spec create_indexes(GenServer.server, String.t, Keyword.t, Keyword.t) :: :ok | {:error, Mongo.Error.t}
1203+
@spec create_indexes(GenServer.server, String.t, [Keyword.t], Keyword.t) :: :ok | {:error, Mongo.Error.t}
12021204
def create_indexes(topology_pid, coll, indexes, opts \\ []) do
12031205
cmd = [createIndexes: coll, indexes: indexes]
12041206
with {:ok, _} <- Mongo.issue_command(topology_pid, cmd, :write, opts) do

0 commit comments

Comments
 (0)