aboutsummaryrefslogtreecommitdiffstats
path: root/src/services/graphql/fetchers/thematics/fetch-thematic.ts
Commit message (Collapse)AuthorAgeFilesLines
* fix(services,types): make coherent Thematic type and queryArmand Philippot2023-11-281-1/+4
| | | | | | * some nodes was queried but missing in the Thematic type and vice versa, it is now fixed * add tests for all thematics fetchers
* refactor(services, types): reorganize GraphQL fetchers and data typesArmand Philippot2023-11-271-0/+96
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