Getting an item column values and additional mirrored column display values gives error when retrieving next page. The original query I limit to 2 items

With addiing complexity I get that the query is 3095, which is still okay no?
{
“data”: {
“complexity”: {
“before”: 10000000,
“query”: 3095,
“after”: 9996905,
“reset_in_x_seconds”: 60
},

With the following next page:
query{
next_items_page(
cursor: “MSwzODY4Mjc4NDMwLDhfaWxtVTJhQWVqLS1IMjl3dE0tQiw0MjMsMix8MzI3ODM3ODYwMw”
) {
cursor
items {
id

  column_values {
    column {
      id
      title
      type
    }
    value
    text
  }
  column_values {
    ... on MirrorValue {
      column {
        id
        title
        type
      }
      display_value
      text
    }
  }
}

}
}

I get an error response :slight_smile:
{
“errors”: [
{
“message”: “Failed to fetch”,
“stack”: "TypeError: Failed to fetch\n at https://monday.com/nhp/_next/static/chunks/d310b1ebcb21564b607af0377ef0e1240c79bee0.dd6c8b0f89ced6ba8a82.js:1:13303\n at https://monday.com/nhp/_next/static/chunks/pages/_app-11ac16eedf3cc32ce5ee.js:1:30591\n at o (https://monday.com/nhp/_next/static/chunks/pages/_app-11ac16eedf3cc32ce5ee.js:1:28829)\n at s (https://monday.com/nhp/_next/static/chunks/92.8ad00a6f5cbbc104d8fa.js:1:55344)\n at https://monday.com/nhp/_next/static/chunks/92.8ad00a6f5cbbc104d8fa.js:1:90422\n at …

I’d recommend editing this post and changing it to be posted in the “monday Apps & Developers” section. “monday dev” is about the monday dev product (which is a set of templates and special features for developers using monday.com).

2 Likes

Hi @codyfrisch , I don’t have rights to post on that section unfortunatly

Its just the forum software being dumb, since you were within this section when you posted this, it only lets you choose this on when you posted.

Are you saying you can’t go to that section and create a new post even?

That forum is unrestricted, so anyone can post there - or should be able to. You may just need to create a new post though.

1 Like

Hi @codyfrisch thanks for the update. I found another post that handles my same problem so I’m following up on that one: Slow API response with MirrorValue - #17 by codyfrisch

1 Like

Well that said, looking at your query the issue is you put column_values twice. You can only include it once. BUT you can put as many different fragments ... on MirrorValue or ... on DropdownValue within a single column_values as you need. the fragments are only executed “on” columns of the appropriate type.

This

column_values {
 id
 type
 column {
  title
 }
 text
 value
 ... on MirrorValue {
  display_value
 }
 ... on DropdownValue {
  values {index, label}
 }  
}
2 Likes