craiggwilson / Simple.Data.MongoDB

MongoDB adapter for Simple.Data
35 stars 10 forks source link

Count a non-existing collection #10

Closed eibrahim closed 12 years ago

eibrahim commented 12 years ago

When I run this command:

db.Feeds.FindAll().Count()

I get this exception

Query returned no rows; cannot return scalar value.

The Feeds collection doesn't exist and hasn't been created yet... Is that way I am getting?

I haven't tried creating the collection manually then calling the command again.

craiggwilson commented 12 years ago

I just pushed a new version to nuget. Post back if it doesn't fix your problem.