private function createDocument($document, $operation, $options = [])
    {
        $mutation = [$operation => $document];
        $opts = array_replace(['returnFirst' => true, 'returnDocuments' => true], $options ?: []);
        return $this->mutate([$mutation], $opts);
    }