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

[GraphQL Client] Rework the Page type and APIs that return Option<Page> #36

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

stefan-mysten
Copy link
Collaborator

@stefan-mysten stefan-mysten commented Oct 18, 2024

This PR simplifies the return type of several APIs from Result<Option<Page>, Error> to Result<Page, Error>.
The Page type has now a is_empty function to check if there is no information returned in this page.

It should simplify a bit working with the results of these APIs.

@bmwill bmwill merged commit 7c0ab44 into master Oct 18, 2024
4 checks passed
@bmwill bmwill deleted the gql_rework_page branch October 18, 2024 16:29
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.

2 participants