0

Is it possible to use an alias name on a graphql query such as SQL (see below)

select productCode as 'ID' from product
Rodrigo Rubio
  • 1,686
  • 2
  • 16
  • 26

1 Answers1

0

After some tinkering much googling... here it is.

 query { 
   product { 
     ID : productCode 
   } 
 }
Rodrigo Rubio
  • 1,686
  • 2
  • 16
  • 26