Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 1

Getting a Single Project Column in GraphQL

Is it possible to get all of the information about a single column in a project via GraphQL?  Right now, it looks like I am only able to get the entire list of columns (example below).

 

{
  repository(owner: "microsoft" name:"calculator"){
    project(number:1){
      name
      number
      columns(first:4){
        edges{
          cursor
          node{
            name
          }
        }
      }
    }
  }
}

A workaround I have found is to hold onto the cursor associated with each column and request:

columns(first:1, before:"<next columns cursor>")

 

I would consider this a less than ideal solution because I'm not sure of the permanence of of the cursor value.

I'm looking for the ability to form a request similar to the one below:

{
  repository(owner: "microsoft" name:"calculator"){
    project(number:1){
      name
      number
      column(databaseID:<id>){
            name
        }
      }
    }
  }
}