kolharsam / graphql-engine-rs

UNOFFICIAL - The Hasura GraphQL Engine - in Rust
GNU General Public License v3.0
9 stars 1 forks source link

graphql: add support for aliases for fields #5

Closed kolharsam closed 3 years ago

kolharsam commented 3 years ago

The GraphQL spec supports aliases and the current parser that we have also recognises them.


query {
     user: user_table {
          user_id: id
          name: user_name
     }
}

Either we have to

OR

kolharsam commented 3 years ago

Went with the AS keyword approach and it seems to be working well!