GraphQL: Count of records in advance for paging

Volkhard_Vogeler

Hello,
i want to implement a paging on queries like this:

query { addresses(query: “Street = ‘myStreet’ AND City = myCity”) {Id, Street, City}}

For the paging i want to know in advance how many records this query will return.
Is there any way for this ìn GraphQL (e.g. Count function)?

best regards

volkhard

You would need to write a custom resolver to implement pagination, and our suggestion is to use find and limit for your logic