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

Help for moving field from Viewer to Query #781

Closed
asafigan opened this issue May 10, 2018 · 2 comments
Closed

Help for moving field from Viewer to Query #781

asafigan opened this issue May 10, 2018 · 2 comments

Comments

@asafigan
Copy link

I have a remote schema that defines all of it's queries off of Viewer instead of Query. I am trying to move one of them from Viewer to Query. I don't know if it is possible to do this with this library.

example:

original

type Viewer {
    allBooks: BookConnection!
    [other fields]
}

type Query {
    viewer: Viewer!
}

transformed

type Viewer {
    [other fields]
}

type Query {
    viewer: Viewer!
    allBooks: BookConnection!
}
@saerdnaer
Copy link
Contributor

@yaacovCR
Copy link
Collaborator

yaacovCR commented Apr 1, 2020

This can be solved with HoistFields transform, added by #1307, rolling into #1306.

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

No branches or pull requests

3 participants