Get count only? #21
-
Hi, the api allows for a call to https://api.igdb.com/v4/games/count with a query to get a count of records, I intended to use this to help with pagination, is there any way to accomplish this, as I don't see a separate end point in IGDBClient.Endpoints and setting the endpoint manually ("games/count") encodes the forward slash to %2F and results in a 404 Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Currently there isn't, I can convert this to an issue to address |
Beta Was this translation helpful? Give feedback.
-
This was added in the last release using the var res = await _api.CountAsync(IGDBClient.Endpoints.Games, "where id = 4;");
res.Count; |
Beta Was this translation helpful? Give feedback.
This was added in the last release using the
IGDBClient.CountAsync
method: