how to parse graph cool service in android
Asked Answered
G

2

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.

Galligaskins answered 19/1, 2018 at 4:20 Comment(2)
The given data is not in json format please check and repostFrontpage
this is a graph cool service not json @AvinashGalligaskins
L
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

Lichter answered 20/1, 2018 at 3:53 Comment(0)
G
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.

Geminian answered 19/1, 2018 at 20:13 Comment(0)
L
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

Lichter answered 20/1, 2018 at 3:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.