This repository was archived by the owner on May 31, 2026. It is now read-only.
Rust struct generator fails on Actor object #514
Answered
by
obmarg
jman-schief
asked this question in
Q&A
|
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? |
Answered by
obmarg
Jul 18, 2022
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: |
1 reply
Answer selected by
jman-schief
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: