Using reserved words in query resolvers #1409
-
I am in the process of migrating from HotChocolate to Async GraphQL and one of the input filters is named async fn customers(&self,
after: Option<String>,
before: Option<String>,
first: Option<i32>,
last: Option<i32>,
filter: Option<CustomerFilterInput>
//^^^^^^ I want this to be where
) -> Result<Connection<usize, Customer, EmptyFields, EmptyFields>> { |
Beta Was this translation helpful? Give feedback.
Answered by
cosmincatalin
Nov 23, 2023
Replies: 1 comment
-
The answer to this is not related to |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cosmincatalin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The answer to this is not related to
async-graphql
, but is a Rust general topic. In any case, for other n00bs like me, the answer is to escape the variable this:r#where: Option<CustomerFilterInput>