Not sure if the API is at fault or the paging implementation here.
My request is simple:
let userRequest = APIEndpoint.v1.users.get(
parameters: .init(
filterUsername: email,
filterRoles: role
)
)
for try await page in provider.paged(userRequest) {
for user in page.data {
print(user.attributes?.username ?? "<nil>")
}
}
But I get different results running this again and again, some users are printed twice, and some are missing. There are between 70-110 users in the accounts I'm querying.
Not sure if the API is at fault or the paging implementation here.
My request is simple:
But I get different results running this again and again, some users are printed twice, and some are missing. There are between 70-110 users in the accounts I'm querying.