Skip to content

Commit

Permalink
remove the usage of apollo client (#63)
Browse files Browse the repository at this point in the history
* new API POC

* remove apollo client completely

* update readme

* remove redundant deps

* remove redundant imports

* reorganise scripts

* update Library usage code snippets in README; npm audit fix (#64)

* 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.

* fix missign CLI output (#65)

* 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, update readme, use isomorphic fetch  (#66)

* add example script

* remove dependency node-fetch

* update readme

* update dependency for example script

* readme: minor fix

* Bump version

* downgrade graphql version

* upgrade oclif tools

* upgrade deps

* audit fix

* example: update GraphQL endpoint and queries

Signed-off-by: Shraddha Agrawal <[email protected]>

Co-authored-by: Shraddha Agrawal <[email protected]>
  • Loading branch information
Rishichandra Wawhal and shraddhaag authored Jan 19, 2021
1 parent 2ff9ecd commit 7226131
Show file tree
Hide file tree
Showing 22 changed files with 1,560 additions and 1,042 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
src/graphiql/app
lib
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"no-throw-literal": "off",
"node/no-unsupported-features": "off",
"no-warning-comments": "off",
"semi": [1, "always"]
"semi": [1, "always"],
"no-await-in-loop": "off"
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*-error.log
/.nyc_output
/dist
lib
/tmp
/yarn.lock
node_modules
Loading

0 comments on commit 7226131

Please sign in to comment.