aboutsummaryrefslogtreecommitdiffstats
path: root/src/services/graphql/fetchers/topics/fetch-topics-list.ts
Commit message (Collapse)AuthorAgeFilesLines
* refactor(pages): refine Thematic pagesArmand Philippot2023-12-011-2/+2
| | | | | | | | | | | * add a table of contents (however posts heading are not included) * rename posts list section title * add a useThematic hook to refresh thematic contents * add a useThematicLists hook to refresh thematics list * add a `notIn` filter in thematics list fetcher to directly remove unwanted thematics * add Cypress tests
* fix(services,types): make queries and types coherent for TopicArmand Philippot2023-11-281-2/+2
| | | | | | * some nodes was missing in topicQuery * a node was mispelled in topicsListQuery * add tests for all topics fetchers
* refactor(services, types): reorganize GraphQL fetchers and data typesArmand Philippot2023-11-271-0/+84
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