I’m unable to use the ID’s retrieved from calling the assign
mutation at the /admin
endpoint in a graphql mutation.
- Add mutations don’t have a field for ID
- Update mutations give me the error:
input: updateTest couldn't rewrite mutation updateTest because failed to rewrite mutation payload because ID "0xa297b6" isn't a TestResult
The id 0xa297b6
above is the one I retrieved from assign
.
type Test {
id: ID!
testResult: TestResult!
}
type TestResult {
id: ID!
success: Boolean!
}
mutation UpdateTest {
updateTest(input: { filter: { id: "0xasd" }, set: { result: { id: "0xa297b6", success: true } }) {
test {
id
}
}
}