Skip to content
New issue

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

MorphiaLazyDataModel: Allow user to specify FindOptions and CountOptions #1540

Closed
newk5 opened this issue May 1, 2024 · 0 comments · Fixed by #1541
Closed

MorphiaLazyDataModel: Allow user to specify FindOptions and CountOptions #1540

newk5 opened this issue May 1, 2024 · 0 comments · Fixed by #1541
Assignees
Labels
enhancement Improve an existing component
Milestone

Comments

@newk5
Copy link
Contributor

newk5 commented May 1, 2024

Describe the feature you would like to see added

When using the MorphiaLazyDataModel we should allow the user to specify their own FindOptions and CountOptions. These are morphia objects that allow customizing the query even further like specifying different collections to query against rather than the default one specified on the class, sorting by specific fields and more.

Is your feature request related to a problem?

We added this to our own MorphiaLazyDataModel at work since we needed to point to a different collection in some cases but still use the same model class. We also wanted to be able to sort by a specific field not visible as column on the p:datatable

Describe the solution you'd like

Will provide a PR for this

Describe alternatives you've considered

No response

Additional context

No response

@newk5 newk5 added the enhancement Improve an existing component label May 1, 2024
@melloware melloware added this to the 14.0.1 milestone May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve an existing component
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants