Open marcstein opened 9 years ago
Probably it is a late answer, but did you try something like:
using Mongo
client = MongoClient() # Defaults to MongoClient("localhost", 27017)
colln = MongoCollection(client, "test", "people")
insert(colln, { "name" => "Brian", "age" => 30, "hobbies" => {"surfing", "coding", "video games"}})
When I attempt to run
require("Mongo.jl") using Mongo client = MongoClient() # Defaults to MongoClient("localhost", 27017) insert(client, "test.people", { "name" => "Brian", "age" => 30, "hobbies" => {"surfing", "coding", "video games"}})
I get the following error
ERROR:
insert
has no method matching insert(::MongoClient, ::ASCIIString, ::Dict{Any,Any})client has been initialized.
I've tried this under v3 and v4. What am I doing wrong?
Thanks in advance!