aboutsummaryrefslogtreecommitdiffstats
path: root/src/services/graphql/mutators
Commit message (Collapse)AuthorAgeFilesLines
* test(services): add tests for createComment mutationArmand Philippot2023-12-112-32/+35
| | | | | * add Jest test * add a Cypress test in article pages spec
* refactor(pages): refine Contact pageArmand Philippot2023-12-112-16/+38
| | | | | | | * remove next/router dependency * remove pageTitle since it is defined in MDX * reduce statements by grouping messages * mock response with MSW and add test for sendEmail
* refactor(services, types): reorganize GraphQL fetchers and data typesArmand Philippot2023-11-273-0/+121
The Typescript mapped types was useful for autocompletion in fetchers but their are harder to maintain. I think it's better to keep each query close to its fetcher to have a better understanding of the fetched data. So I: * colocate queries with their own fetcher * colocate mutations with their own mutator * remove Typescript mapped types for queries and mutations * move data convertors inside graphql services * rename most of data types and fetchers