due to the fact GraphQL is simply a query language, we need a library which will handle the boilerplate code for us. The good thing is, such a library by now exists.
The what and why of GraphQL: employing styles, https://checkbookmarks.com/story3472871/the-5-second-trick-for-php-in-html