relay-tools / relay-compiler-language-typescript

⛔️ Obsolete - A language plugin for Relay that adds TypeScript support, including emitting type definitions.
MIT License
241 stars 70 forks source link

Unknown directive 'appendNode' #354

Open quant-daddy opened 3 years ago

quant-daddy commented 3 years ago

I am trying to use appendNode directive on a field but I'm getting Unknown directive @appendNode error. Is this directive currently supported in typescript compiler?

mutation MessagesPanelUserChannelMutation(
  $input: CreateUserChannelInput!
) {
  createUserChannel(input: $input) {
    __typename
    ... on ErrorMessage {
      message
    }
    ... on CreateUserChannelSuccess {
      channel @appendNode(
          connections: ["ChannelNav_viewerChannels"]
          edgeTypeName: "ChannelEdge"
        ) {
        id
      }
    }
  }
}

Versions:

"relay-compiler-language-typescript": "^14.0.0",
"relay-config": "^11.0.2",
"react-relay": "^11.0.1"
sibelius commented 3 years ago

it is working well for me

can you provide more info on this?