To retrieve all boards under a specific folder

Hello All,
Is there anyway to retrieve all boards under a specific folder using a GraphQL query?. I’m trying with below query which is not correct!.

{
folder(id: YOUR_FOLDER_ID) {
id
name
boards {
id
name

}

}
}

Unfortunately querying a folder by ID is not possible. Though you can limit to folders in a workspace.

So you need to query as follows, get all folders in a workspace, (a workspace may be [null] for the main workspace if the account hasn’t had the main workspace assigned an ID.) You will then need to find the folder from the response, to get all the children - and then examine them. Children are boards, so you can query them as if they are boards I believe.

query {
  folders (workspace_ids: 1234567890) {
    name
    id
    children {
      id
      name
    }
  }
}

Thank you @anon29275264 !