I found bifurcated concerns regarding schema.gql
and version controlling. I have NestJS + GQL app, that is developed in code-first practice. The schema file is auto generated.
In many (unofficial) sources advice to keep that file in git so we can track changes. In other hand, checking github repos I found that people add schema.gql
to their .gitignore
file.
When deciding the correct approach, what factors should I consider and what are pros and cons of each above approach?