Inconsistent number of article.tags returned when using different first parameters in GQL que

Graphql

query GetArticles (
  $first: Int, 
  $after: String, 
  $before: String, 
  $last: Int, 
  $query: String, 
  $sortKey: ArticleSortKeys, 
  $reverse: Boolean
) {
  articles(
    first: $first, 
    after: $after, 
    before: $before, 
    last: $last, 
    query: $query, 
    sortKey: $sortKey, 
    reverse: $reverse
  ) {
    nodes {
      author { name }
      blog { id, handle }
      createdAt
      image { id, altText, url }
      isPublished
      publishedAt
      summary
      tags
      templateSuffix
      updatedAt
      id
      title
      handle
    }
    pageInfo {
      ... PageInfoFields
    }
  }
}

fragment PageInfoFields on PageInfo {
  hasNextPage
  hasPreviousPage
  endCursor
  startCursor
}

Variables:

{
  "first": 10,
  "sortKey": "UPDATED_AT",
  "reverse": true
}

Bug Description:
The articles I have contain 10 tags, but when the first parameter is ≥2, the returned article.tags count is incorrect (e.g., only 1 tag). This only works correctly when first = 1.

Expected Behavior:
The tags value should return the correct count even when the first parameter is set to values greater than 10.

1 Like