이제 아래의 예시를 보면 getMovie, getSuggest 2개를 한번에 사용해서 원하는 값들만 가져올수있다. REST API였다면 2번의 호출할 것을 1번에 끝내는 것이다. 이것을 통하여 불필요한 정보까지 포함해서 가져오는 Over-fetching과 하나를 완성하려고 많은 소스를 요청하는 Under-fetching을 해소할 수 있다.
//output { "data": { "addMovie": [ { "id": 9860, "title": "Made in Hong Kong", "rating": 7.6, "summary": "Autumn Moon (Sam Lee), a low-rent triad living in Hong Kong, struggles to find meaning in his hopelessly violent existence.", "language": "English", "medium_cover_image": "https://yts.am/assets/images/movies/made_in_hong_kong_1997/medium-cover.jpg", "url": "https://yts.am/movie/made-in-hong-kong-1997" }, { "id": 9859, "title": "From the Life of the Marionettes", "rating": 7.5, "summary": "Made during Bergman's tax-related exile in Germany, the film continues the story of Katarina and Peter EGermann, the feuding, childless, professional couple who appear in one episode of \"Scenes From A Marriage.\" After Peter perpetrates a horrendous crime in its first scene, the rest of the film consists of a non-linear examination of his motivations, incorporating a police psychological investigation, scenes from the EGermanns' married life, and dream sequences.", "language": "English", "medium_cover_image": "https://yts.am/assets/images/movies/from_the_life_of_the_marionettes_1980/medium-cover.jpg", "url": "https://yts.am/movie/from-the-life-of-the-marionettes-1980" }, { "id": 1111111111, "title": "김세준의 Blog", "rating": 10, "summary": "good", "language": "한국어", "medium_cover_image": "https://kimsejune.github.io/", "url": "https://kimsejune.github.io/" } ] } }