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

♻️ Breakdown of duties #44

Open
johannchopin opened this issue Apr 21, 2021 · 0 comments
Open

♻️ Breakdown of duties #44

johannchopin opened this issue Apr 21, 2021 · 0 comments

Comments

@johannchopin
Copy link

Hey @mandiwise 👋 Thanks for your work put on this one 👍

This ability to check for all graphQl mutations/queries to a defined schema is really nice and could be really helpful for a lot of project. However the fact that this process is 'captive' of a GitHub Action doesn't provide a lot of flexibilities.

My idea would be to extract all the logic of it in a package that:

  • export the main function to be used for example validateGraphqlOperations(dir, schemaFilePath)
  • provide a CLI like validate-graphql-operations src schema.graphql

The usage would be really similar to graphql-schema-diff for example.

Finally this action will only import the package and consume it with the @actions/core API.

I can help for the implementation so what do you think of this idea?

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

No branches or pull requests

1 participant