RavenDB Query by New Property
===

I just added a new property (Deleted) to an existing Foo class:

    public class Foo
    {
        // Other properties here
        public bool Deleted { get; set; }  // New property
    }

I have 88 Foos in the DB. When I try to query by this new property, I get no documents:

    session.Query<Foo>()
    .Where(x => x.Deleted == false)

I believe this is because the Deleted property does not exist on any of the Foo documents in the DB. To get this to work, I had to get all Foos, then filter on the full list and return where Deleted == false.

    session.Query<Foo>();
    return foos.Where(x => x.Deleted == false);

Is this the way a change like this needs to be handled? It would be nice to just have the Where() filter in the query itself, but I can understand why that wouldn't work.