a8m / documentdb

Go driver for Microsoft Azure DocumentDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not compile

nkev opened this issue · comments

commented

None of the examples currently work. The error is from the connection line:

client := documentdb.New("connection-url", documentdb.Config{"master-key"})

cannot use "master-key" (type string) as type *documentdb.Key in field value

Shouldn't we be passing a *documentdb.Key instead of string?

Hey, thanks for reporting this issue.

Shouldn't we be passing a *documentdb.Key instead of string?

Yes.

We should update the documentation and the documentdb-example as well.