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
2020 was a challenging year for many industries, and marketing was no exception. Overall budgets were cut, and the pandemic caused significant shifts in consumer behavior that required brands to respond swiftly. The focus was on resilience and digital transformation, with digitally-first brands outperforming than the rest. As we step into a new year, agility and digital investment will remain top priorities for marketers as brands attempt to catch up on what they lost. Forrester predicts that 2021 will be the year that every company prioritizes technology-driven experiences, operations, products and eco-systems to stay ahead. An unprecedented time alongside ongoing changes in the digital marketing landscape means you need to be proactive in your approach and have your eye on industry and consumer trends, such as the rise of data and AI, authenticity, and the shift to mobile. In 2020, 45 percent of brands didn’t have a clearly defined digital marketing plan. However, moving forward, a solid plan is essential as everyone is more aware of the benefits of having one, as well as the risks of not. Setting goals and outlining strategy will be crucial, such as identifying what channels are working, what else you can try out, and
If you are aiming to grow your business, returning customers are key – repeat business is a surefire way to drive revenue and build a sustainable business. One of the best ways to achieve it is through a customer loyalty or VIP program. However, with hundreds of thousands brands fighting for customer loyalty with various schemes and programs, how do you ensure yours delivers real value to customers, and keeps them coming back for more? What Does Customer Loyalty Mean for Businesses? Happy customers spread the word, and word-of-mouth is far more effective than a company’s advertising. According to Nielsen, 26 percent of global consumers say brands become familiar to them through recommendations, while only 15 percent claim they stay loyal due to the brand’s advertising and marketing messages. Loyal customers have a higher lifetime value (LTV or CLV) than occasional customers, and they are more likely to make bigger purchases. In a recent KPMG survey, 52 percent of consumers said they would still buy their favorite brand even if it was cheaper and more convenient to buy from a rival. They also make a big difference to a company’s sustainability. The same KPMG survey shows that 86 percent
When it comes to measuring a brand’s success, profit only tells half the story. Customer engagement is a way to see how big a part you play in your customers’ lives, and in turn how likely they are to stay loyal, spend more money with you and help your brand grow. Here is everything you need to know. What Is Customer Engagement? Customer engagement refers to interactions between your brand and its customers. The frequency, type and level of these interactions will vary depending on your customers, the type of service or product that you offer, and your aims as a business. For example, say you have two customers, Mark who follows your brand on social media and Jamie who subscribes to your service and recommends it to all his friends. These are both types of interaction with your brand, so both count as client engagement. However, Jamie’s level of engagement is much deeper and better for your brand than Mark’s. Hence customer engagement is about quality and quantity of interactions. Gaining a lot of followers on social media is great for your brand, but only if some of them convert into purchases! Successful user engagement relies on you