Skip to main content

API Error - Dimension mismatch

  • April 2, 2021
  • 3 replies
  • 3302 views

I got a simple query, where I want to get all items from a board

The idea is to get a list of items, based on Google Sheets where my Board Ids are stored.

But I’m already receiving an error when I want to use a variable in my query

var boardId = 1136581766;
var query = "query($board:Int!) {boards (ids:$board,state:active){name id items {id name column_values{id,text, type, title,value}}}}"; var variables = { "board" : boardId, };

{“errors”:[{“message”:“List dimension mismatch on variable $board and argument ids (Int! / [Int])”,“locations”:[{“line”:1,“column”:29}],“fields”:[“query”,“boards”,“ids”]}],“account_id”:4428197}

What I’m doing wrong? 😭

This topic has been closed for replies.

3 replies

Forum|alt.badge.img
  • monday.com Team Member
  • April 2, 2021

Hi @Stijn! Welcome to our community~

Sorry to see you’re running into some trouble here.

Are you also experiencing this error when you test this query with variables in your API playground?

If you change Int! to [Int] does that work for you?

Thanks,
Helen


  • Author
  • New Participant
  • April 2, 2021

Yezzz! 🥳 - that did the trick!


  • April 9, 2021

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.