americanexpress / nodes

A GraphQL JVM Client - Java, Kotlin, Scala, etc.
Apache License 2.0
307 stars 70 forks source link

Support for Union #74

Open shivamsk opened 5 years ago

shivamsk commented 5 years ago

Do we have any support for using the Union in the response?

This is the sample query I am trying to fetch the response for .

searchABCs (pageSize:100,pageNum:1,query:"{}")
  { 
    totalCount
    results{
      ... on ABC {
        id
        name
        value
        abcInnerItem{
          id
          name 
        }
      }
    }
  } 

This is already tracked here: https://github.com/americanexpress/nodes/issues/62

Please let me know if there is an alternative way of getting the response for this.

shivamsk commented 5 years ago

@chemdrew @tberman Please check this