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

Fastify Context & schema TS types. #3258

Open
rainyEra opened this issue May 7, 2024 · 1 comment
Open

Fastify Context & schema TS types. #3258

rainyEra opened this issue May 7, 2024 · 1 comment

Comments

@rainyEra
Copy link

rainyEra commented May 7, 2024

Describe the bug

Context is not being typed.

Your Example Website or App

https://codesandbox.io/p/devbox/beautiful-dust-h4f98s?file=%2Findex.ts%3A12%2C13

Steps to Reproduce the Bug or Issue

Reproduced

Expected behavior

The context should be typed

Screenshots or Videos

image
image

Platform

  • NodeJS: [20]
  • @graphql-yoga/* 5.3.0

Additional context

No.

@ardatan
Copy link
Collaborator

ardatan commented May 22, 2024

These two definitions have nothing to do with each other. That's why you cannot get "context" typed.
createSchema also takes a context generic that might help for you.

image

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