Rust struct generator fails on Actor object #514
-
These two queries are both equivalent and valid (they only differ when returning the query One {
repository(owner: "obmarg", name: "cynic") {
issues(first: 1) {
edges {
node {
author {
... on User {
login
}
}
}
}
}
}
}
query Two {
repository(owner: "obmarg", name: "cynic") {
issues(first: 1) {
edges {
node {
author {
login
}
}
}
}
}
} But query Is it useful if I open a ticket? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @jman-schief - thanks for raising this - it looks like a bug (or at the very least an oversight). I've opened #515 to handle it. I expect you should be able to write the struct for this yourself and have it work, but obviously it's not great if the generator doesn't support it. Something like this:
|
Beta Was this translation helpful? Give feedback.
Hey @jman-schief - thanks for raising this - it looks like a bug (or at the very least an oversight). I've opened #515 to handle it.
I expect you should be able to write the struct for this yourself and have it work, but obviously it's not great if the generator doesn't support it. Something like this: