Skip to content

Beta API graphql queries incorrect in documentation #14109

@sarina

Description

@sarina

Code of Conduct

What article on docs.github.com is affected?

Finding the node ID of an organizational project, both the single project and first 20 on this page

When I run the query specified in the docs, subbing in my organization and board (public project, so should work for anyone authed):

gh api graphql -f query='                                                                                                                            
  query{                                                                                                                                             
    organization(login: "openedx"){                                                                                                                  
      projectNext(number: 8) {                                                                                                                       
           id                                                                                                                                        
      }                                                                                                                                              
    }                                                                                                                                                
  }'

I repeatedly get the following response:

{
  "data": {
    "organization": {
      "projectNext": null
    }
  }
}

I can't check out the rest of the API as I need node IDs moving forward

What changes are you suggesting?

Update the documentation to the correct example queries

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamwaiting for reviewIssue/PR is waiting for a writer's review

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions