Posts

Showing posts with the label GraphQL

Working With GraphQL for Mobile App Development using Flutter - Part 2

 I continued from Part 1 of our series in working with GraphQL for mobile App Development, please check it out if you missed it. To begin with GraphQL for flutter, here are the steps to take- 1 . First get the plugin for graphql flutter from the pub.dev its called graphql_flutter. or better still copy this  graphql_flutter: ^5.0.0-nullsafety.2 and paste in your pubspec yaml file. Make sure you are pasting this in your dependencies path. here are the basic dependencies to get started hive : 2.0.4 hive_flutter : ^1.0.0 path_provider : ^2.0.1 in your dev dependencies add this hive_generator : ^1.1.0 build_runner : ^2.0.1 Hive is an In-Memory management library which provides the technology of handling in memory management for you during your app development. please check more about hive for more details.  path provider is a library which helps to get the current path or directory so that can either use it as an argument for some other process or just any use case dependin...

Working with GraphQl API for Mobile App Development using Flutter Part 1

Image
This is my personal experience working with GraphQL endpoints in flutter development. In this article, I will not write about building some sophisticated UI's, I will only concentrate on how to set up your network architecture in other to successfully get responses from a GraphQL endpoint.  This article is currently been documented as I undergo the interview process from HaggleX. you can check out  HaggleX . It is the first time working with GraphQL for flutter, and I spent a few hours trying to understand the basics of GraphQl, going through the HaggleX GraphQL playground and trying to get familiar with the document as I learn. I had help from one of my colleague who does Node and has worked with GraphQl before so I sat with him while he helped explain the terminologies such as mutation, query and subscription. We practised with the playground environment and made a few calls which were successful but he is not into mobile development, so I was left alone to figure out how to...