6

I want to parse the graph Cool service in android. I am unable to parse the data.

here is the URL:

 https://api.graph.cool/simple/v1/cj8dyjr0144dk33b7pz

have to parse this service

 mutation {
    updateLocation(

   id:"cjck0maq9q7ovs54z",
  lat:"16.11",
  long:"81.11"
   ) {
 id,lat,long
}
}

Please, any one has idea about that.Please help to resolve this issue.

Lassie
  • 984
  • 11
  • 25

2 Answers2

1

Looks like you use a tool to create classes that do the parsing: apollo-codegen

It was mentioned in the docs here: frontend quick start

So very similar to how you work with AIDL in Android.

DataDino
  • 1,507
  • 1
  • 15
  • 30
1

please refer the complete document provided by Apollo graphql. it is a GraphQL compliant client that generates Java models from standard GraphQL queries.this link provides a sample application for native android. click here

Bharat Kumar Emani
  • 3,436
  • 3
  • 16
  • 30