Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Any chance of a wrapper for native gql and makeExecutableSchema? #13

Open
Nik-Novak opened this issue May 5, 2020 · 1 comment
Open

Comments

@Nik-Novak
Copy link

Nik-Novak commented May 5, 2020

First off, I have to say this is amazing and should be part of core graphql. There's so many limitations introduced without this feature, so thank you.

Is there any chance this could somehow be implemented with graphql-tools makeExecutableSchema? I find that a large number of larger projects tend to implement their gql schemas with this tool, and if a wrapper function could be made that translates the native gql templated language into the required format a lot more people might find and use this tool.

graphql-tools: https://www.npmjs.com/package/graphql-tools
An example of a wrapper-function that enables inheritance, generic typing, etc in schemas:
https://www.npmjs.com/package/graphql-s2s
(Ideally there would be a similar wrapper function such as: transpileUnionInputType(schema))

@Cardinal90
Copy link
Owner

Hi, sorry for the late reply. I'm glad that someone still finds this useful. Wasn't sure if it still works. The last time I tested was before GraphQL v1.0.

This was a thing I hacked together when playing around with a new cool tech. That's why I implemented all the different API's that came to my mind :). Unfortunately I haven't touched GraphQL since, and I don't even write javascript these days. So I won't be able to catch up and give any meaningful answer.

I will point you to #9 , as the question seems similar. Sorry, that I couldn't help more.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@Cardinal90 @Nik-Novak and others