Added document/upsert to the native client