Skip to main content

I want to use a query that simply queries the board using Apollo Client in a Java environment.


[ Board Query ]


query Boards($ids: [Long]!) {
boards(ids: $ids) {
id
name
}
}


I wonder how I can look up the board using the GraphQL variable.


In Java, numbers exceeding 2^32(such as 3249001234) must be specified as Long, not int, and if Type is specified as Long, an error occurs because it does not match the type defined in Monday.


I tried to do it the other way around, but the same type doesn’t match, so an error occurs.


p Board Query ]


query Boards($ids: :Int]!) {
boards(ids: $ids) {
id
name
}
}


How can i handle this problem?

Hi @thlee,


In this case, I recommend that you don’t use the GraphQL variable, but instead pass in a variable (that you define outside of this query) directly to the ids argument.


Reply