Accept doc._id or doc.id