Solved

How to offset the card fields in graphql

  • 13 June 2023
  • 4 replies
  • 133 views

Userlevel 4

Hi

Using graphql I am looking to access a card that has over 100 fields.

I notice that I always get the first 100 fields when using :
 

{
card(id: 5555555555) {
id
title
fields {
name
}
}
}

Is there a way by which I could offset the fields I retrieve using graphql?
Thanks!

icon

Best answer by Lais Laudari 13 June 2023, 15:18

View original

4 replies

Userlevel 7

Hi @enrique.herbella!

For your case, you will always need to tell it what information you want the query to show you.
 

query MyQuery {

    allCards(pipeId: ####) {

        edges {

            node {

                fields {

                    field {

                        id

                    }


There is a shortcut you can just click on the CTRL key + Space key, which shows you the options you can use. With that, all the fields that will appear are the ones that are available for that part of the query.
In this print below you can see an example of using the CTRL + Space key to show all the options I can use in that field:
 

 

Userlevel 4

Thanks!

Userlevel 7
Badge +13

👏👏👏👏👏👏

Userlevel 7
Badge +18

Hi @enrique.herbella!

For your case, you will always need to tell it what information you want the query to show you.
 

query MyQuery {

    allCards(pipeId: ####) {

        edges {

            node {

                fields {

                    field {

                        id

                    }


There is a shortcut you can just click on the CTRL key + Space key, which shows you the options you can use. With that, all the fields that will appear are the ones that are available for that part of the query.
In this print below you can see an example of using the CTRL + Space key to show all the options I can use in that field:
 

 

TKS!

Reply