Relay Resolvers are still considered experimental. To use them you must ensure that the ENABLE_RELAY_RESOLVERS runtime feature flag is enabled, and that the enable_relay_resolver_transform feature flag is enabled in your project’s Relay config file.
라고 주장하고 아직 @types/relay-runtime
에 타입이 반영 안 돼있기 때문에, 지금 사용하려면 relay-compiler
설정 + relay-runtime
런타임 설정 + relay-runtime
타입 확장을 해야 원활합니다.
// relay.config.js 또는 package.json 파일의 'relay' 컴파일러 설정
module.exports = {
src: "./",
artifactDirectory: "...",
language: "typescript",