You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment the alias is added as a method call at the end of the query:
importgql.DSLdef result =DSL.execute(schema) {
query('byYear', [year: '1962']) {
returns(Film) {
title
year
}
alias 'first'
}
query('byYear', [year: '2015']) {
returns {
title
year
bond
}
alias 'last'
}
}
It would be great to use statement labels as query alias. Something like this:
importgql.DSLdef result =DSL.execute(schema) {
first: query('byYear', [year: '1962']) {
returns(Film) {
title
year
}
}
last: query('byYear', [year: '2015']) {
returns {
title
year
bond
}
}
}
That I think should involve an AST transform.
The text was updated successfully, but these errors were encountered:
At the moment the
alias
is added as a method call at the end of the query:It would be great to use statement labels as query alias. Something like this:
That I think should involve an AST transform.
The text was updated successfully, but these errors were encountered: