Can someone confirm my understanding that it is IMPOSSIBLE to have a Rust struct be both an Object (types that can be queried and represented as JSON objects in the response) and an InputObject (types that can be used to pass arguments to GraphQL queries and mutations but cannot be queried themselves.)?
For reference, I want to pass in a Vec of BookRecord within a Mutation Resolver but also return a Vec of
BookRecord but the Rust compiler panics because: 'Register BookRecord as InputObject, but it is already registered as Object.
If the above set up is impossible, what is next step to try and make my above approach work?
I'm pretty sure the Rust compiler doesn't panic, but your progam does. However, it's hard/impossible to tell what your problem is without a concrete code sample. Please provide a real, minimal, self-contained example that reproduces your problem.