'How to query all boards with a specific workspace in Monday Api?

I want to list all boards from a specific workspace?..How to correctly write such query

I am doing this way

query {
boards (workspace_id :1405052) {
name
}
}

Getting this error

"errors": [ { "message": "Field 'boards' doesn't accept argument 'workspace_id'",



Solution 1:[1]

query { boards { id workspace_id } }

Solution 2:[2]

you have to use "ids" and not "workspace_id " try this: query { boards (ids: 1405052) { name } }

Have a nice day!

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dmitriy Patsovskiy
Solution 2 Diego Nespoli