Skip to content

owengombas/graphql-composer-decorators

Repository files navigation

graphql-composer-decorators

Create your GraphQL API using decorators!


graphql-composer-decorators

GraphQL comes to revolutionize backend development, the fact that you have to declare types is something very useful, however it can lead to code duplication and therefore affect the stability of your application. Indeed, based on the DRY (Don't Repeat Yourself) principle, the fact of declaring several times the same element in a different way should be avoided, because when this element changes it is necessary to modify several parts of code, so if only one of these parts is omitted it can cause problems in your application and the more it grows the harder it will be to maintain it.

graphql-composer

The graphql-composer-decorators module is broken down into two modules instead of making one heavier, graphql-composer simply provides a compositing API which allows you to create an API using the "builder" design pattern and compositing.

Documentation for this module will be available soon.