relay-compiler-language-typescript icon indicating copy to clipboard operation
relay-compiler-language-typescript copied to clipboard

Unknown directive 'appendNode'

Open quant-daddy opened this issue 4 years ago • 1 comments

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"

quant-daddy avatar May 09 '21 03:05 quant-daddy

it is working well for me

can you provide more info on this?

sibelius avatar Jun 07 '21 02:06 sibelius