RavenDB - retrieving part of document
I am playing with Raven DB for few days and I would like to use it as a storage for my Web chat application. I have document which contains some user data and chat history - which is big collection chat messages. Each time I load user document chat history is also loaded, even if I need only few fields like: user name, password and email. My question is: how to load only part of document from database ? Tomek, You can't load a partial document, but you can load a projection. session.Query<User>() .Where(x=>x.Name == name) .Select( x=> new { x.Name, x.Email }); That will load only the