nicolasdao / schemaglue

Naturally breaks down your monolithic graphql schema into bits and pieces and then glue them back together.
BSD 3-Clause "New" or "Revised" License
116 stars 13 forks source link

Support for Typescript files? #1

Closed henry74 closed 6 years ago

henry74 commented 7 years ago

Thanks for putting this together. Definitely helps with organization of graph schema files and resolvers.

Tried to use this with schema files written in .ts files but had issues. Had to switch .js files in order to use the library. Is typescript supported or planned?

nicolasdao commented 7 years ago

Hi @henry74 ,

Thanks heaps for your support :) We have a pretty busy roadmap at the moment. We accept pull requests though, so if you feel this is something that could add value to the GraphQL community, I'll be glad to add you as a contributor.

Let me know your thoughts.

Cheers,

Nic

nicolasdao commented 6 years ago

Hi @henry74 ,

Would you be able to give me an example of .ts files that are creating issues so I can add support for TypeScript?

Thanks a lot in advance.

Nic

lukebarton commented 6 years ago

So I tried using this via ts-node, hoping it would magically load resolver.ts but I was out of luck :)

rozaydin commented 6 years ago

+1 for the typescript support :) @nicolasdao If you havent already you can download sample ts files from here

chrismllr commented 6 years ago

I've opened a PR which, although it is naive, works for us! https://github.com/nicolasdao/schemaglue/pull/10

nicolasdao commented 6 years ago

Support for typescript has been added in release 4.0.0 and above. Closing this issue. Thanks to @chrismllr and @ilgooz for their help.