twenty icon indicating copy to clipboard operation
twenty copied to clipboard

[Flexible-schema] Refactor gql query runner to emit api event before processing to gql types

Open Weiko opened this issue 3 months ago • 1 comments

Fixes https://github.com/twentyhq/twenty/issues/8300

Context

API events were created too late and were already formatted as Gql responses (including nesting with edges/node/type + formatting that should not exist in an event payload). This PR moves the emit logic to the resolver where we actually do the DB query

Weiko avatar Nov 19 '24 18:11 Weiko