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

import * doesn't work with Root Fields #370

Closed
ralphchristianeclipse opened this issue Oct 10, 2019 · 4 comments
Closed

import * doesn't work with Root Fields #370

ralphchristianeclipse opened this issue Oct 10, 2019 · 4 comments

Comments

@ralphchristianeclipse
Copy link

Can you make import * work including root fields.

#import Mutation.*, Query.*, * from "./schema/auth.graphql"
#import Mutation.*, Query.*, Subscription.*, * from "./schema/user.graphql"

right now I'd have to do the above.

@ardatan
Copy link
Owner

ardatan commented Dec 31, 2019

Hi @ralphchristianeclipse !
In 1.0.0 beta release, we introduced a lot of changes including a fix for this issue;
Could you install graphql-import@beta to try new changes? Don't forget to modify your code regarding to the migration notes in README.
https://github.com/ardatan/graphql-import#updating-from-07x

@ardatan
Copy link
Owner

ardatan commented Mar 17, 2020

Available in 1.0.0!

@ardatan ardatan closed this as completed Mar 17, 2020
@flexlee
Copy link

flexlee commented May 3, 2020

The import * still doesn't work in 1.0.2. I have to

# import SpecificType, * from "./generated-schema/schema.graphql"

rather than

# import * from "./generated-schema/schema.graphql"

@ardatan
Copy link
Owner

ardatan commented May 3, 2020

@flexlee Could you open a seperate issue with a minimal reproduction? Thanks.

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

No branches or pull requests

3 participants