All project notes

Engineering

Plugins for the admin GraphQL API

SalesCandy used a Serverless Framework plugin to describe the AppSync API for its admin application.

The SalesCandy admin service supplied its GraphQL schema, data sources, and mapping templates to the AppSync plugin to configure its AWS AppSync API.
Illustrative diagram

Plugins extend what the Serverless Framework can configure and deploy. The SalesCandy admin API loaded serverless-appsync-plugin and used its configuration to reference a GraphQL schema, data sources, and resolver mapping templates. SalesCandy kept the mappings in separate files for areas such as user analytics, settings, and WhatsApp message templates. The service manifest showed which pieces belonged to the AppSync API while each area had files the team could review on their own.

SalesCandy Git evidence — Dodol/sc-admin-appsync at 1991980 (22 September 2021), serverless.yml. Serverless Framework concepts