Technical Insights: Introduction to GraphQL
At Appier, we have been using GraphQL for around a year. GraphQL drives client-server communications for one of our main AI platforms, Aixon. We have benefitted a lot from GraphQL’s characteristics, such as the concept of “object fields” and its resolvers. Its declarative approach to whitelist all inputs and outputs makes it a great tool to build programming interfaces.
This presentation is designed to be an introduction to GraphQL and was originally delivered to other internal product teams in Appier. The talk is specifically designed for Node.JS or Python developers that have never tried GraphQL before. It provides succinct code examples in both programming languages to guide the audience through all the essential topics they should know in order to start building their own GraphQL schema and to run a GraphQL API server.
There are already quite a lot presentations on the internet explaining the high-level concepts of GraphQL. In this talk, I have put more emphasis on the actual source code required to get GraphQL running, providing a more pragmatic perspective to understanding GraphQL.
The talk covers the following topics:
- Fundamental parts of a GraphQL server
- Defining API shape – GraphQL schema
- Resolving object fields
- Mutative APIs
- Making requests to a GraphQL server
- Solving N+1 query problem: dataloader
Editor’s note: Speaker notes are available with Google Slides.
WE ARE HERE TO HELP
YOU MIGHT ALSO LIKE
The days of general advertising or marketing campaigns targeting the masses are numbered. Whether you are selling a bank loan or clothing online, you have to know your specific target audience. The hard part? Identifying the right audience to help you maximize your marketing return on investment (ROI). Analyzing and segmenting online traffic can be a painfully manual process. Efforts can range from educated guesses to applying simple analysis tools on data. While these will work when you are analyzing a handful of dimensions, the real challenge is when there is complex data or a combination of over 80 dimensions to analyze. Powerful AI tools to target your audience Today, one of the most exciting tools available to marketers is predictive audience segmentation powered by artificial intelligence (AI). As part of the larger category of predictive analytics, predictive audience segmentation has the power to help companies identify a target audience with the highest potential for conversion to a sale or click or install, whatever your KPIs (key performance indicators) are. Commonwealth Magazine, one of the most influential magazines in Taiwan, experienced dramatic results when it used the powerful predictive audience segmentation capabilities in Appier’s Aixon platform. Not only did the
Traditional audience building goes something like this: Mike has performed action A, so will be sent message A. While this approach works to a point, it is pretty simplistic and doesn’t take into account consumers’ complex online behavior today. The reality is, while Mike may have performed a specific action, this only tells you what he has done, not what he is likely to do in the future. Because of this, allocating budget to this type of basic personalization is a risk. However, it is a risk many brands are still taking, and they are suffering from poor engagement as a result. With some of the latest developments in artificial intelligence (AI), there is a better way: Targeting based on real-time customer intent. Understanding Real-time Intent Targeting Real-time intent targeting, also known as cognitive product targeting, is the next step in personalization. Enabled by AI, it gives you the ability to accurately predict ever-changing customer intent, down to the millisecond. You can use powerful algorithms and deep learning to analyze billions of consumer data points in real time, across multiple channels. These include both owned channels, such as your website, apps and email, as well as external websites. Taking this
Marketing should be a two-way process. Instead of the traditional ‘top-down’ approach, it is vital to listen to your customers in order to meet their needs and provide experiences that tick all their boxes. By getting to know your customers, you will gain actionable consumer insights, and be much better placed to serve them more of what they want, and less of what they don’t. What Are Consumer Insights? Consumer insights are understanding that a business gains about consumers and how they think and feel. More importantly, consumer insights shed light on why they think and feel this way. This gives companies an intimate knowledge of their customers, and helps them communicate with their audience much more effectively. If you know not only that a customer wants to buy a bright blue coat but also that they are doing so because they think spring colors suit them, you can recommend garments in other spring colorways. Consumer insights will help your business improve customer satisfaction and hence boost customer retention, all of which will increase your return on investment (ROI). What Does It Take to Gain Meaningful Consumer Insights? Such insights do not come easy. Gaining actionable consumer insights requires the