| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | refactor(services, types): reorganize GraphQL fetchers and data types | Armand Philippot | 2023-11-27 | 1 | -32/+0 |
| | | | | | | | | | | | | | 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 | ||||
| * | fix(comments): load all comments on a post | Armand Philippot | 2022-08-21 | 1 | -13/+24 |
| | | | | | | | | | | Previously, only the first 10 comments was loaded. So I update the fetching method to retrieve all the comments on a post. Also, I choose to order comments on client side because of a bug with WPGraphQL. Finally, I renamed the Comment type to SingleComment to avoid conflict with existing types. | ||||
| * | refactor: rewrite API fetching method and GraphQL queries | Armand Philippot | 2022-05-02 | 1 | -0/+21 |
