Query board by name

How can I query board by its name? I need to see if a board with this name doesn’t exist to create with duplicate_boards. I’ve tried

query {

  boards (name: "my board name") {

      ids

    name

    state

    board_folder_id

    owner {

      id

    }

  }

}

but I’m getting

"errors": [
        {
            "message": "Field 'boards' doesn't accept argument 'name'",
            "locations": [
                {
                    "line": 3,
                    "column": 11
                }
            ],
            "fields": [
                "query",
                "boards",
                "name"
            ]
        },
        {
            "message": "Field 'ids' doesn't exist on type 'Board'",
            "locations": [
                {
                    "line": 5,
                    "column": 7
                }
            ],
            "fields": [
                "query",
                "boards",
                "ids"
            ]
        }
    ],
 

Please advice

Hi,

I would like to double the request by Sonja. I am currently working on a scenario, where I want to search boards by name matching with keywords completely or partially, it will be awesome if you can release something like getBoardsByValue like itemsByValue query.

Thanks!

Hey guys,

quick walkthrough:

  1. query your boards:
query {
  boards{
    id name
  }
}
  1. You will get something like this:

image

  1. Filter your response.

  2. Done