Skip to content

Commit

Permalink
fix: adr004 file name
Browse files Browse the repository at this point in the history
  • Loading branch information
timonmasberg committed Apr 15, 2023
1 parent eaa4939 commit e58bf02
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,22 @@ accepted

## Context

Apollo GraphQL offers 2 approaches to create and maintain a GraphQL schema: Code First and Schema First. We have to choose one of them to start developing our Graph.
Apollo GraphQL offers 2 approaches to create and maintain a GraphQL schema: Code
First and Schema First. We have to choose one of them to start developing our
Graph.

## Decision

We are using the Code First approach which generates a GraphQL schema from TypeScript classes and their annotations.
With the Code First approach, we have type safety out of the box and we can generate the schema automatically.
Furthermore, the knowledge about GraphQL schema specifications is rare in the team, which also contributed to this decision.
We are using the Code First approach which generates a GraphQL schema from
TypeScript classes and their annotations. With the Code First approach, we have
type safety out of the box and we can generate the schema automatically.
Furthermore, the knowledge about GraphQL schema specifications is rare in the
team, which also contributed to this decision.

## Consequences

- It is easier to setup, maintain and refactor.
- We can think in TypeScript models and types while developing our schema, which should enable us to develop faster.
- We might hit a barrier which we currently can not see with the Code First Approach when our schema gets complex.
- We can think in TypeScript models and types while developing our schema, which
should enable us to develop faster.
- We might hit a barrier which we currently can not see with the Code First
Approach when our schema gets complex.

0 comments on commit e58bf02

Please sign in to comment.