-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Query interface is empty when using an instance of GraphQLSchema #1061
Comments
As far as I can tell, it's not related to resolvers, even |
@kamilkisiela thanks for the fast reply, as you've just mentioned, that's what I'm getting when using TypeScript export(
As you say the Basically, when I'm using the Url as schema config it does work, using TypeScript export file as schema config doesn't work |
Reproduction: #1072 The issue here is the 🕵️I will try to 🔍 investigate that case! |
It's |
Reproduction: Urigo/graphql-modules#238 |
Urigo/graphql-modules#238 should fix it |
Awesome @kamilkisiela , thanks for such incredible work 😃 |
Fixed in 0.15.2 :) |
Describe the bug
Using typescript-resolvers plugin, QueryResolvers.Resolvers are empty when using TypeScript export schema config.
To Reproduce
Steps to reproduce the behavior:
git clone -b graphql-ts-emptyQueryResolvers https://github.com/swcarlosrj/SpaceX-API.git
yarn
yarn generate
Expected behavior
Get the auto generated resolver types.
Environment:
Additional context
Using Url(
schema: http://localhost:4000/graphql
) schema config (it does work):Using TypeScript export(
schema: src/graphql/schema/index.ts
) schema config (it does not work!):The motivations for using this configuration is having nodemon & gql-gen watching for the schema & resolver files, having Url as schema config on gql-gen, whenever you change a file, both gql-gen & apollo server will restart where gql-gen will usually finish first then the
schema: http://localhost:4000/graphql
is not available to auto generate the types.Is there a better way to resolve this problem than the following conf (which I cannot make it work)?
P.D.: The typescript-server plugin is working correctly, what I cannot get are the resolvers, probably I'm missing smth out on the config.
The text was updated successfully, but these errors were encountered: