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

Automatically generate predefined queries, mutations, and subscriptions #4

Merged
merged 26 commits into from
Dec 3, 2024

Conversation

bradens
Copy link

@bradens bradens commented Sep 17, 2024

Problem

We had to manually update graphql queries for the "builtin" queries with changes whenever the schema was updated. This was annoying, costly and meant that the sdk was always out of date.

Instead, let's automatically build them.

Caveats:

  • This is a breaking change, as the old builtin queries have been replaced.
  • We may need to add a way to override the auto generated behavior, we could do this by mixing in these auto generated ones with handcrafted ones.

After this PR lands, we'll support all of the queries, mutations, and subscriptions listed on docs.codex.io via sdk.queries.*, sdk.subscriptions.* and sdk.mutations.*.

@bradens bradens marked this pull request as ready for review September 18, 2024 17:40
@bradens bradens merged commit 76ca92a into main Dec 3, 2024
1 check passed
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.

1 participant