MorphiaOrg / MorphiaOrg/morphia

Mirror the FindIterable and AggregateIterable APIs in the driver

Open
#3,284 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

aggregation Breaking enhancement query rewritable
Dominant language
Java
Stars
1.7k
Forks
449
Avg merge
7m
Merged PRs (30d)
10

Description

Currently, Morphia has its own FindOptions and AggregationOptions for historical reasons. Given the recent changes to the APIs for querying and aggregation (namely, that they are themselves Iterable) it makes more sense to mirror how the driver sets those options via these two interfaces versus having overloads to take them. Transitioning to this style of API would simplify the API and reduce the surface area involved.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing Morphia's current FindOptions and AggregationOptions APIs alongside the driver's FindIterable and AggregateIterable interfaces. The work is done when Morphia mirrors the driver's option-setting style through those interfaces and no longer needs the corresponding overloads.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, mongodb
Domain
api, database
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.