documentdb icon indicating copy to clipboard operation
documentdb copied to clipboard

Does not compile

Open nkev opened this issue 5 years ago • 1 comments

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?

nkev avatar Dec 22 '18 05:12 nkev

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.

a8m avatar Dec 24 '18 11:12 a8m