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

remove the usage of apollo client #63

Merged
merged 16 commits into from
Jan 19, 2021
Merged

remove the usage of apollo client #63

merged 16 commits into from
Jan 19, 2021

Conversation

wawhal
Copy link
Contributor

@wawhal wawhal commented May 15, 2020

Changes:

  1. Remove the usage of Apollo client, thus reducing the bundle size significantly
  2. [Breaking] Change the API for using graphqurl in a script (Refer README). The API for the CLI is unchanged.

Rishichandra Wawhal and others added 12 commits April 26, 2020 10:03
* npm audit fix

* docs: update Library usage code snippets

This commit updates the function to create GraphQL client to
createClient in all code snippets under Library docs.
* replace introspectQuery with getIntrospectionQuery

introspectQuery is deprecated in graphql v15.0.0 in favour of
getIntrospectionQuery.

* cli: add module query.js

This commit adds module query.js to facilitate running queries.
It makes use of npm package rewire to use unexported query func
in command.js

* cli: refactor ui.js

This commit makes use of query function in ui.js to implement DRY.

* cli: update introspectionQuery func in command.js

* cli: support mutation in query.js

* cli: fix eslint errors

* cli: remove rewire

* cli: catch error while fetching introspection schema in ui.js
* add example script

* remove dependency node-fetch

* update readme

* update dependency for example script

* readme: minor fix
@wawhal
Copy link
Contributor Author

wawhal commented Jun 12, 2020

Some pending tasks:

  1. Ability to close a running subscription.
  2. Ability to refresh the client with new headers. This is done, just needs to be tested and documented.
  3. Test with multiple subscriptions for edgecases.

Signed-off-by: Shraddha Agrawal <shraddha.agrawal000@gmail.com>
@wawhal wawhal merged commit 7226131 into master Jan 19, 2021
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