twenty
twenty copied to clipboard
Clean "edges" typing for object records
Right now, in the FE, queries are returning paginated object: companies { edges: [ nodes { people
We want the frontend to manipulate companies: people
Once done, we can type the frontend with standard objects: Company { people: Person[] }
Places to add/remove nesting:
- useFindManyRecords
- useCreateManyRecords
and:
- optimisticEffect : read/write from cache
- modifyCache: write in cache
- optimisticResponse for createMany?
Introduce standards types (see GraphQLView that should become View)
Duplicate of https://github.com/twentyhq/twenty/issues/2781