Do you need any help with Migration?
You are currently browsing legacy 4.0 version of documentation. Click here to switch to the newest 4.2 version.
Migration: DatabaseCommands has been removed
IAsyncDatabaseCommands has been replaced in RavenDB.Client 4.0 by operations. Please read the dedicated documentation section about operations available in the client API.
Checking if document exists
var exists = store.DatabaseCommands.Head(id) != null;
var exists = session.Advanced.Exists(id);