The package @axinom/mosaic-service-common contains modules that help to create a Mosaic-based service by providing a boilerplate

@axinom/mosaic-service-common

This package contains modules that help to create a Mosaic-based service. It encapsulates all the boilerplate code for:

  • Setting up the GraphQL API from a PostgreSQL database

  • Entity validation directives

  • GraphQL subscriptions (web-socket based GraphQL push notifications)

  • Migrations and support for fast development (manage DB migrations, those changes are immediately reflected in the GraphQL API during development)

  • Common logging solution

  • Common error handling

  • Common configuration management

  • Different helper functions to manage data, tests, etc.