java - How to send graphql query with fragments in Android -


i new graphql , need send graphql query fragments android app. below query format accepted network.

query{   user(ident:"johndoe"){     mystory{       description,     placements(first:3){       edges{         node{           mediaitemtype           mediaitem {             ...videofragment             ...photofragment           }         }       }     }     }   } } fragment videofragment on video {     videohtml } fragment photofragment on photo {     url(size:10) } 

any appreciated!!

this depends on server implementation of graphql. graphql not define medium, leaves question being broad. since express-graphql common, i'll make guess may using that. if that's true, can query on http more details outlined on documentation project. if happens not case, you'll need more digging.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -