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

Add field aliasing support #10

Open
alloy opened this issue Oct 4, 2017 · 4 comments
Open

Add field aliasing support #10

alloy opened this issue Oct 4, 2017 · 4 comments

Comments

@alloy
Copy link

alloy commented Oct 4, 2017

http://graphql.org/learn/queries/#aliases

@alloy
Copy link
Author

alloy commented Oct 4, 2017

A ✨ Ruby option:

artist do
  for_sale_artworks > artworks(for_sale: true)
  not_for_sale_artworks > artworks(for_sale: false)
end

But may be too magical 😊

@mikeyhew
Copy link

mikeyhew commented May 1, 2019

I was going to suggest a method called alias, but apparently that's a keyword in Ruby.

@mbajur
Copy link

mbajur commented Feb 2, 2021

does @alloy solution still applies? My client throws

Field 'for_sale_artworks' doesn't exist on type 'Artist'

@yuki24
Copy link
Collaborator

yuki24 commented Feb 2, 2021

@mbajur I don't believe this has ever been implemented. PRs are welcomed.

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

5 participants