facebook / facebook/relay

Config options to opt-in into kinda @raw_response_type mode

Open
#4,014 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

The directive `@raw_response_type` gives access to the response typings (or close to, due some strange `__is*`).
It would be nice to opt-in into generating raw response types without the need to add the directive to our operations.

This will make it easier to create mocks, and it is only about typings it does not heart the runtime.
Otherwise, we need to change every single query to add this directive.

This kind of typings improve the readability and testability of the code without affecting the pros of masking.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.