Friction

Feature request · API & developer experience · Blocks work

Let actions reuse types already in the schema

1 source thread · first seen 2020-06

Summary

Actions force duplicate type definitions even when the type already exists, which clutters codegen output, breaks enum reuse in TypeScript and prevents Apollo cache updates.

Affects
TypeScript and Apollo teams
Workaround
Define the types manually following the reuse-types docs

Evidence

Excerpts are copied word for word from the source; follow the link to read it in full.

“We have to explicitly define action types for inputs and outputs, even if we are returning types that already exist”

Report this item