Graphql-yoga: Typescript example

Created on 11 Dec 2017  Â·  6Comments  Â·  Source: dotansimha/graphql-yoga

Hello,

It should be awesome to have a typescript example in this repository (I have some issues with the resolvers types for example…).

arereadme statupr-welcome

Most helpful comment

I agree. @fabien0102 have you seen the advanced TypeScript boilerplate?

All 6 comments

This seems adequately covered by the TS boilerplates?

I agree. @fabien0102 have you seen the advanced TypeScript boilerplate?

Closing this as there was no reply. There are examples in this folder, and boilerplates on Typescript using yoga. That should be sufficient. If you run into any specific issues, feel free to open a new issue.

The advanced TS boilerplate is not using strict: true, which takes away from some of the experience of TS.

Also, it's unclear how to type middleware on the graphql endpoint:

server.express.post(server.options.endpoint!, async (req: Request, res: Response, next: NextFunction, db: Context) => {

TS is not happy with this.

@blocka it’d be more relevant to submit this feedback/issue as an issue in the TypeScript boilerplate repository.

https://github.com/graphql-boilerplates/typescript-graphql-server/issues/99

On Sun, Jan 28, 2018 at 3:05 PM, Devan Beitel notifications@github.com
wrote:

@blocka https://github.com/blocka it’d be more relevant to submit this
feedback/issue as an issue in the TypeScript boilerplate repository.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/graphcool/graphql-yoga/issues/27#issuecomment-361091496,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACoumHzfQ_eOilrOweZ01m3liYCL8M3ks5tPNMFgaJpZM4Q9Ol-
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SebastianEdwards picture SebastianEdwards  Â·  4Comments

AhmadEl-Banna picture AhmadEl-Banna  Â·  5Comments

lautiamkok picture lautiamkok  Â·  4Comments

checkmatez picture checkmatez  Â·  5Comments

frederikhors picture frederikhors  Â·  4Comments