graphlient
graphlient copied to clipboard
Add field aliasing support
http://graphql.org/learn/queries/#aliases
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 😊
I was going to suggest a method called alias
, but apparently that's a keyword in Ruby.
does @alloy solution still applies? My client throws
Field 'for_sale_artworks' doesn't exist on type 'Artist'
@mbajur I don't believe this has ever been implemented. PRs are welcomed.