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

Add run_graphql_field for testing #4732

Merged
merged 7 commits into from
Dec 18, 2023
Merged

Add run_graphql_field for testing #4732

merged 7 commits into from
Dec 18, 2023

Conversation

rmosolgo
Copy link
Owner

@rmosolgo rmosolgo commented Dec 15, 2023

I'm ready to add some GraphQL-specific test methods to this library. People are already writing code to short-circuit field execution; I might as well make it supported!

TODO

  • lazy_resolve / GraphQL::Batch support
  • Dataloader support
  • Visibility support
  • Add docs
  • resolve a field
    • Add a shortcut mode for resolving multiple fields with the same type/object/context setup
  • Check visibility, authorized

@rmosolgo rmosolgo added this to the 2.2.0 milestone Dec 15, 2023
@rmosolgo rmosolgo changed the base branch from master to 2.2-dev December 15, 2023 20:48
@rmosolgo rmosolgo changed the title Add GraphQL-specific assertions and matchers Add testing helpers Dec 16, 2023
@rmosolgo rmosolgo marked this pull request as ready for review December 18, 2023 16:08
@rmosolgo rmosolgo changed the title Add testing helpers Add run_graphql_field for testing Dec 18, 2023
@rmosolgo rmosolgo merged commit 46c205d into 2.2-dev Dec 18, 2023
12 checks passed
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

1 participant