Skip to content

Expose GraphQLQueryWatcher init method#750

Merged
designatednerd merged 1 commit intoapollographql:masterfrom
mikaelbartlett:feature/expose-GraphQLQueryWatcher-init-as-public
Sep 4, 2019
Merged

Expose GraphQLQueryWatcher init method#750
designatednerd merged 1 commit intoapollographql:masterfrom
mikaelbartlett:feature/expose-GraphQLQueryWatcher-init-as-public

Conversation

@mikaelbartlett
Copy link
Copy Markdown

This is a small fix exposing GraphQLQueryWatcher init method.

We would like to have this to be able to mock and test using ApolloClientProtocol.

@apollo-cla
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

@designatednerd designatednerd left a comment

Choose a reason for hiding this comment

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

Ah yeah good catch - ApolloQueryWatcher is returned from the watch protocol method, but since this wasn't public there wasn't a way to instantiate one.

Thanks for the fix!

@designatednerd designatednerd merged commit 3fc6f10 into apollographql:master Sep 4, 2019
@designatednerd designatednerd added this to the 0.15.1 milestone Sep 4, 2019
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.

3 participants