facebook / facebook/relay

Supporting connection graphql directives on inline fragments

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

Description

Currently the connection graphql directives (e.g. `@appendNode`, `@appendEdge`, etc...) can only be used on a field object but not an inline fragment. The proposal here is to expand. the usage of the directives to also work on inline fragments. The use case for this is when you have a union type:

Example:

```
mutation {
commentCreate(...) {
comment {
... on Comment @appendEdge(...) {
id
}
... on CommentErrors {
error
}
}
}
}
```

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.