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

feat(#13, #9): --graphql, --schema #55

Merged
merged 8 commits into from
Oct 2, 2024
Merged

feat(#13, #9): --graphql, --schema #55

merged 8 commits into from
Oct 2, 2024

Conversation

h1alexbel
Copy link
Owner

@h1alexbel h1alexbel commented Oct 2, 2024

In this pull, I've introduced new CLI parameters: --graphql, --schema for dynamic query and parsing.

closes #13
closes #9
History:


PR-Codex overview

This PR focuses on refactoring the way GraphQL queries are handled in the project, moving from a hardcoded query string to reading the query from a file. It also introduces a new utility for accessing nested properties in objects and adds tests for these functionalities.

Detailed summary

  • Added a new query in test/resources/query.graphql.
  • Refactored src/graph.js to read the GraphQL query from a file.
  • Introduced nestedProp function in src/nested-prop.js for accessing nested properties.
  • Added tests for graph.js in test/graph.test.js.
  • Added tests for nestedProp in test/nested-prop.test.js.
  • Updated src/index.js to utilize the new query reading method.
  • Modified README.md to include new command-line options for GraphQL query and schema file paths.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@h1alexbel
Copy link
Owner Author

@rultor merge

Copy link

codecov bot commented Oct 2, 2024

Codecov Report

Attention: Patch coverage is 61.29032% with 12 lines in your changes missing coverage. Please review.

Project coverage is 18.75%. Comparing base (1d3b297) to head (1cfe989).
Report is 13 commits behind head on master.

Files with missing lines Patch % Lines
src/index.js 0.00% 10 Missing ⚠️
src/nested-prop.js 88.88% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #55      +/-   ##
==========================================
+ Coverage    9.35%   18.75%   +9.39%     
==========================================
  Files           9       10       +1     
  Lines         171      192      +21     
  Branches       34       41       +7     
==========================================
+ Hits           16       36      +20     
- Misses        155      156       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rultor
Copy link
Collaborator

rultor commented Oct 2, 2024

@rultor merge

@h1alexbel OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit ae2c64d into master Oct 2, 2024
8 checks passed
@rultor
Copy link
Collaborator

rultor commented Oct 2, 2024

@rultor merge

@h1alexbel Done! FYI, the full log is here (took me 22min)

@h1alexbel h1alexbel deleted the 50 branch October 2, 2024 09:26
@h1alexbel
Copy link
Owner Author

@rultor release, tag is 0.0.7

@rultor
Copy link
Collaborator

rultor commented Oct 2, 2024

@rultor release, tag is 0.0.7

@h1alexbel OK, I will release it now. Please check the progress here

@rultor
Copy link
Collaborator

rultor commented Oct 2, 2024

@rultor release, tag is 0.0.7

@h1alexbel Done! FYI, the full log is here (took me 21min)

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.

add --graphql for graphql API query index.js:185-189: Add support for dynamic field mapping....
2 participants