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

chore(apollo-server-testing): improve types #4383

Conversation

DouglasGabr
Copy link
Contributor

Allow to pass generic types in query and mutate function of apollo-server-testing, so we can use typed results and variables.
It's not required to provide custom types, and it falls back to the original types (any for data field in result, and Record<string, any> for variables)
Specially useful when using GraphQL Code Generator to generate types for the operations

@apollo-cla
Copy link

@DouglasGabr: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

@abernix abernix changed the base branch from main to release-2.19.0 October 5, 2020 13:27
@abernix abernix added this to the Release 2.19.0 milestone Oct 5, 2020
@abernix abernix merged commit 43ba6fb into apollographql:release-2.19.0 Oct 5, 2020
@DouglasGabr DouglasGabr deleted the chore/improve-apollo-server-testing-types branch October 5, 2020 14:11
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants