Fetch & Update Data with Squidex API

I have…

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [x] Documentation issue or request

Current behavior

Expected behavior

Minimal reproduction of the problem

Environment

App Name:

  • [x] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [] Cloud version

Version: [VERSION]

Browser:

  • [x] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:
My use case is to iterate though nearly 3000 records in Squidex and check for certain condition.
It it meets the condition, do some updation.
I started with using GetAsync and then using UpdateAsync.
But soon realised that GetAsync only fetches 200 items.
I understand that GetAllAsync is mainly for a very big data set but I have 3000 only, which is not that big.
So pls can you guide what is the best way to do it ?
Thanks

Hi,

you can use GetAllAsync just fine: https://github.com/Squidex/squidex-samples/blob/91d084c65d7a8241d3536f6a433f1e670a33fa4e/csharp/Squidex.ClientLibrary/Squidex.ClientLibrary/ContentsClient.cs#L66

As you can see: it loops over the items as well and uses pagination.