Search Boards/Items with the GraphQL API

Hi,

I noticed that there is no ideal way of (fuzzy) searching boards and items using the GraphQL API.

We are building several apps where we need the end-user to select items or boards.

For a board picker, we keep fetching all boards, using the pagination arguments, until we have found 20 boards that match the user’s input. (board-name includes the input string)

For an item picker, we first ask the user to select a board, using the strategy above, and then we keep fetching all items, using the pagination arguments, until we have found 20 items that match the user’s input. (item-name includes the input string)

These approaches:

  1. Are very slow when the monday.com instance has lots of boards and items.
  2. Do not scale with the complexity budgets in the api.

Preferably, we would love to be able to query boards and items using a search argument so that we do not need to fetch all items to find the item the end-user is looking for.

Is our approach the only way to make this work, or am I missing something?

Thanks!

Hello there,

If you want the users to be able to select from a list, you are using the right approach.

I have created a request from your suggestion to add a “search” argument so that you can avoid fetching all boards/items.

Cheers,
Matias

1 Like

Hey,
Just updating that this is now possible using the new filters in 2023-10, you can use the contains_text operator.
:slight_smile:

1 Like

Hi thanks for the update to this ticket.

  1. The new API requires a column_id to search for items in a board. Is there a way to search all columns in the board at once?
  2. Is there a way to search for Docs and Files using the API?

Hi Prasad,

Welcome to the community!

If you are looking to query for columns in a board, you can follow the documentation for querying columns for a single board here.

If you are looking to query docs for a specific board or object, you can follow the documentation to query for docs here.

Hope this helps with searching for your data!

Best,
Joseph