graphql-code-generator icon indicating copy to clipboard operation
graphql-code-generator copied to clipboard

docs(vanilla typescript): Fix the return type of the exec function

Open Brookke opened this issue 5 months ago • 1 comments

Description

When working through the vanilla typescript example I found that the shape of the data actually returned by the fetch was result.data.allPeople rather than result.allPeople that the types suggests. This PR corrects that.

Related #10359

Type of change

Please delete options that are not relevant.

  • [ ] Bug fix (non-breaking change which fixes an issue)

Screenshots/Sandbox (if appropriate/relevant):

N/A

How Has This Been Tested?

N/A

Checklist:

  • [x] I have followed the CONTRIBUTING doc and the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] I have made corresponding changes to the documentation
  • [x] My changes generate no new warnings
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] New and existing unit tests pass locally with my changes
  • [ ] Any dependent changes have been merged and published in downstream modules

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

Brookke avatar May 28 '25 13:05 Brookke

⚠️ No Changeset found

Latest commit: 35dc815c943bfd2b0024d69bbbb9bd8779b5e533

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar May 28 '25 13:05 changeset-bot[bot]