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

feat: allow using options object in EntityManager.find() #14

Merged
merged 1 commit into from Mar 1, 2019

Conversation

B4nan
Copy link
Member

@B4nan B4nan commented Feb 28, 2019

EM and EntityRepository now supports providing options in object:

const books = await booksRepository.find({ author: '...' }, {
  populate: ['author'],
  limit: 1,
  offset: 2,
  sort: { title: QueryOrder.DESC },
});

EM and EntityRepository now supports providing options in object:

```
const books = await booksRepository.find({ author: '...' }, {
  populate: ['author'],
  limit: 1,
  offset: 2,
  sort: { title: QueryOrder.DESC },
});
```
@coveralls
Copy link

Pull Request Test Coverage Report for Build 160

  • 6 of 6 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 158: 0.0%
Covered Lines: 1328
Relevant Lines: 1328

💛 - Coveralls

@B4nan B4nan merged commit b2397be into master Mar 1, 2019
@B4nan B4nan deleted the find-options branch March 1, 2019 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants