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

The article on using mappers does not show code examples #10152

Open
laytong opened this issue Sep 25, 2024 · 1 comment
Open

The article on using mappers does not show code examples #10152

laytong opened this issue Sep 25, 2024 · 1 comment
Assignees

Comments

@laytong
Copy link

laytong commented Sep 25, 2024

Which packages are impacted by your issue?

No response

Describe the bug

Going to the article on how to use mappers linked from the documentation is pretty useless at the moment.
All the references to code sandbox show "The workspace of the owner of this VM has run out of credits. Contact them to unlock the VM."

Attempts to use the "fork" button on each sandbox doesn't appear to work/do anything.

I'm looking for complex examples of mappers with types that share an interface and inherit resolvers/reduce codegen

Your Example Website or App

https://the-guild.dev/blog/better-type-safety-for-resolvers-with-graphql-codegen

Steps to Reproduce the Bug or Issue

  1. Go to https://the-guild.dev/blog/better-type-safety-for-resolvers-with-graphql-codegen
  2. See sandboxes don't load

Expected behavior

Sandboxes should load

Screenshots or Videos

No response

Platform

All

Codegen Config File

No response

Additional context

Would be great to see complex examples added to the code examples repos such as https://github.com/charlypoly/codegen-repros/blob/master/reusable-mappers/codegen.yml

@eddeee888
Copy link
Collaborator

Hi @laytong ,

Apologies, that page is quite old and unlikely will be kept up-to-date. For now, we recommend using Server Preset which has better developer experience for mappers support:

@eddeee888 eddeee888 self-assigned this Nov 17, 2024
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

2 participants