eamigo86 / graphene-django-extras

Extras functionalities for Graphene-Django
MIT License
417 stars 108 forks source link

fix results None with PageGraphqlPagination #179

Open tamhv opened 2 years ago

tamhv commented 2 years ago

Backward compatibility with client when using PageGraphqlPagination

Issue:

//client
query {
  users {
    totalCount
    results {
      id
    }
  }
}

Output:

//old version
{
  totalCount: 1,
  users: {
    id: 123
  }
}

//new version (0.5.2)
{
  totalCount: 1,
  users: null
}