Setting up codegen and adding a schema will help with a cleaner project structure and re-usability of queries and mutations. In order for codegen to work, a schema file needs to be added. Adding the schema file will add type safety, reduced boilerplate code and will provide a single source of truth.
Setting up codegen and adding a schema will help with a cleaner project structure and re-usability of queries and mutations. In order for codegen to work, a schema file needs to be added. Adding the schema file will add type safety, reduced boilerplate code and will provide a single source of truth.