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

Show how to use Limit with repository queries. #672

Closed
wants to merge 2 commits into from

Conversation

christophstrobl
Copy link
Member

Add methods taking a Limit parameter to various samples.

Add methods taking a Limit parameter to various samples.
*/
@Test
void limitResultSize() {
StepVerifier.create(repository.findByLastname("White", Limit.of(1))).expectNextCount(1).verifyComplete();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Care to rewrite all StepVerifier.create(…) syntax occurrences into as(StepVerifier::create) to polish up the code?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch - sure thing 👍

Replace usage of StepVerifier.create with StepVerifier::create.
@mp911de mp911de closed this Nov 2, 2023
@mp911de mp911de deleted the issue/671 branch November 2, 2023 14:00
mp911de pushed a commit that referenced this pull request Nov 2, 2023
Add methods taking a Limit parameter to various samples.

Original pull request: #672
Closes #671
mp911de pushed a commit that referenced this pull request Nov 2, 2023
Replace usage of StepVerifier.create with StepVerifier::create.

Original pull request: #672
See #671
mp911de added a commit that referenced this pull request Nov 2, 2023
Guard Cassandra index creation.

Original pull request: #672
See #671
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.

Update examples to demonstrate usage of Limit parameter.
2 participants