-
Notifications
You must be signed in to change notification settings - Fork 157
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
Graphql codegen typescript effect #701
base: main
Are you sure you want to change the base?
Graphql codegen typescript effect #701
Conversation
🦋 Changeset detectedLatest commit: f374095 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
3141c9a
to
aa10805
Compare
@Urigo I've just removed the no longer necessary patch of |
to let corepack take care of yarn version resolution, so that the user does not have to install different versions of yarn on their machine
…over to the client constructor
…in the generated SDK Co-authored-by: Tim Smart <hello@timsmart.co>
It's a mystery to me why I'm getting the following error during the build step:
This PR does not touch |
1821b0e
to
f374095
Compare
The problem is introduced in 873debd. I have no clue why but yarn suddenly resolves the |
|
||
export class GraphQLClient extends Context.Tag('GraphQLClient')< | ||
GraphQLClient, | ||
Http.client.Client< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be <GraphQLSuccessResponse, Http.error.HttpClientError | MissingDataGraphQLResponseError, never>
now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't upgraded to the latest version of effect, yet. I'm first trying to figure out what's wrong with the current build. Yarn's dependency hoisting got messed up after I added this new workspace. I don't understand what's going on and how to work around the issue.
My strategy to take this work further is to modernize the tooling first. I'd appreciate it if one of the maintainers could take a look at #735 🙇 |
🚨 IMPORTANT: Please do not create a Pull Request without creating an issue first.
Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of
the pull request.
Description
Implements a new GraphQL codegen plugin that outputs a client SDK written using Effect.
Related # (issue)
#664
Type of change
Please delete options that are not relevant.
expected)
Screenshots/Sandbox (if appropriate/relevant):
Adding links to sandbox or providing screenshots can help us understand more about this PR and take
action on it as appropriate
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can
reproduce. Please also list any relevant details for your test configuration
Test Environment:
@graphql-codegen/...
:Checklist:
CONTRIBUTING doc and the
style guidelines of this project
Further comments
I've mostly followed the implementation of
@graphql-codegen/typescript-graphql-request