silverstripe / silverstripe-graphql

Serves Silverstripe data as GraphQL representations
BSD 3-Clause "New" or "Revised" License
52 stars 61 forks source link

Want to remove default limit on child or relation #497

Closed Zeeshanjbd2 closed 2 years ago

Zeeshanjbd2 commented 2 years ago

i ran into a problem where am trying to get checkout cart while i have a single record coming from cart table and in cart table i have multiple items coming everything is working fine the only issue is i added 106 items to cart now am only getting 100 however if i print count it's sending 1006 items but in graphql at some point it is limiting can you please help me with this

kinglozzer commented 2 years ago

Hi, thanks for taking the time to post to our issue tracker.

The issue tracker is reserved for reporting bugs and we don't provide support via the issue tracker. There are great community support options where you can get help including Stack Overflow (remember to tag as silverstripe), our forums and Slack.

Sorry we can't be of more help and good luck resolving your problem!

kinglozzer commented 2 years ago

The default pagination page length is 100 items, so you most likely need to disable pagination: https://docs.silverstripe.org/en/4/developer_guides/graphql/working_with_dataobjects/query_plugins/#disabling-pagination