Skip to content

Conversation

@sweep-ai-deprecated
Copy link

PR Feedback (click)

  • 👍 Sweep Did Well
  • 👎 Sweep Needs Improvement

Description

This PR adds support for a GraphQL endpoint using the openapi-to-graphql library. It allows users to query the API using GraphQL syntax and retrieve data in a more flexible and efficient manner.

Summary of Changes

  • Added the "openapi-to-graphql" library as a dependency in the package.json file.
  • Created a new file "lib/graphql.js" to handle the GraphQL server logic.
  • Integrated the GraphQL server with the existing ExpressJS server in "lib/index.js".
  • Updated the README.md file to include information about the new GraphQL endpoint.

Please review and merge this PR to enable GraphQL support in the API.

Fixes #45.


🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can:

  • Leave a comment below to get Sweep to edit the entire PR
  • Leave a comment in the code will only modify the file
  • Edit the original issue to get Sweep to recreate the PR from scratch

@sweep-ai-deprecated sweep-ai-deprecated bot added the sweep Assigns Sweep to an issue or pull request. label Sep 26, 2023
@sweep-ai-deprecated
Copy link
Author

GitHub actions yielded the following error.

The command that failed is npm start & npx wait-on http://localhost:3000. Here are the relevant lines from the logs:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/runner/work/google-play-api/google-play-api/lib/graphql' imported from /home/runner/work/google-play-api/google-play-api/lib/index.js
at new NodeError (node:internal/errors:405:5)
at finalizeResolution (node:internal/modules/esm/resolve:327:11)
at moduleResolve (node:internal/modules/esm/resolve:946:10)
at defaultResolve (node:internal/modules/esm/resolve:1132:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:835:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40)
at link (node:internal/modules/esm/module_job:76:36) {
code: 'ERR_MODULE_NOT_FOUND'
}

Please note that the operation was canceled, so there might be additional logs or errors related to the cancellation.

This is likely a linting or type-checking issue with the source code. Update the code changed by the PR. Don't modify the existing tests.

I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep Assigns Sweep to an issue or pull request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sweep (slow): GraphQL Support

1 participant