We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repositories should follow a collection-oriented style with a save function to handle upserting the object as a unit of state.
save
Example:
trait JobRepository[F[_]: MonadCancelThrow] { def nextIdentity(): F[JobId] def save(job: Job): EitherT[F, String, Unit] def delete(job: Job): EitherT[F, String, Unit] def get(id: JobId): EitherT[F, String, Job] def find( filterOpt: Option[JobFilter], paginationOpt: Option[Pagination] ): F[List[Job]] }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Repositories should follow a collection-oriented style with a
save
function to handle upserting the object as a unit of state.Example:
The text was updated successfully, but these errors were encountered: