Service/Crud.php
public function create(Repository $repository, array $data)
    {
        if (!empty($data['_id']) && $this->read($repository, $data['_id'])) {
            throw new \RuntimeException('The resource existed.');
        }

        $repository->getManager()->bulk('create', $repository->getType(), $data);
    }
public function create(Repository $repository, array $data)
    {
        if (!empty($data['_id']) && $this->read($repository, $data['_id'])) {
            throw new \RuntimeException('The resource existed.');
        }

        $repository->getManager()->bulk('create', $repository->getType(), $data);
    }
{@inheritdoc}