Strapi 4.5.3 graphql query relation field pagination setting is invalid

System Information
  • Strapi Version: 4.5.3
  • Operating System: Mac os
  • Database: sqlite3 @7.6.2
  • Node Version:
  • NPM Version: 8.15.0
  • Yarn Version: v16.17.1

Steps to reproduce the behavior

  1. For example, executing graphql queries query GetFields( $locale: I18NLocaleCode! $slug: String $pagination: PaginationArg ) { fields( locale: $locale filters: { slug: { eq: $slug } } sort: ["order:asc", "publishedAt:asc"] pagination: $pagination ) { data { id attributes { __typename locale name slug description introduce publishedAt teams(pagination: {pageSize: 4}) { data { attributes { slug name avatar { ...FileParts } } } } } } } } fragment FileParts on UploadFileEntityResponse { data { id attributes { alternativeText width height mime url formats } } }
  2. ‘Query the associated field teams in fields, teams(pagination: {pageSize: 4}) pagination setting is invalid’
  3. In fact, there are more than four teams in the query, so the paging setup is invalid

截屏2022-11-13 17 08 32

Passing pageSize:4 and there response contains all entries.

Expected behavior

According to the teams pagination Settings, four relevant records were queried

  • Here’s a graphql query
query GetFields(
  $locale: I18NLocaleCode!
  $slug: String
  $pagination: PaginationArg
) {
  fields(
    locale: $locale
    filters: { slug: { eq: $slug } }
    sort: ["order:asc", "publishedAt:asc"]
    pagination: $pagination
  ) {
    data {
      id
      attributes {
        __typename
        locale
        name
        slug
        description
        introduce
        publishedAt
        teams(pagination: {pageSize: 4}) {
          data {
            attributes {
              slug
              name
              team_category {
                data {
                  attributes {
                    name
                  }
                }
              }
              fields {
                data {
                  attributes {
                    name
                  }
                }
              }
            }
          }
        }
        metadata {
          metaTitle
          metaDescription
          metaKeywords
        }
        localizations {
          data {
            id
            attributes {
              locale
              slug
            }
          }
        }
      }
    }
  }
}

I have the same problem when I try to use “limit” in a subfield.
Strapi version: 4.5.2

Also have the same issue when trying to use limit in subfield.
Strapi version: 4.6.0

I know it works on Strapi@4.4.5

Hey! your graphql query helped me - but there is a way to query the

meta {
    pagination {
        total
        pageCount
    }
}
``` for the relation field?