twenty icon indicating copy to clipboard operation
twenty copied to clipboard

Clean "edges" typing for object records

Open lucasbordeau opened this issue 2 years ago • 2 comments

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[] }

lucasbordeau avatar Nov 27 '23 12:11 lucasbordeau

Places to add/remove nesting:

  • useFindManyRecords
  • useCreateManyRecords

and:

  • optimisticEffect : read/write from cache
  • modifyCache: write in cache
  • optimisticResponse for createMany?

charlesBochet avatar Dec 18 '23 09:12 charlesBochet

Introduce standards types (see GraphQLView that should become View)

charlesBochet avatar Dec 18 '23 09:12 charlesBochet

Duplicate of https://github.com/twentyhq/twenty/issues/2781

lucasbordeau avatar Jan 04 '24 14:01 lucasbordeau