A paginated query for listing friends. Create via UserModule.createFriendsQuery.
const query = NCEngine.userModule.createFriendsQuery({ pageSize: 50 });const page = await query.loadNextPage();if (page.isOk) { page.data.forEach((f) => console.log(f.userId, f.remark));}
Whether the query is currently loading data
Whether there are more pages of data to load
Loads the next page of query results. Returns a busy error if a load operation is already in progress.
const result = await query.loadNextPage();if (result.isOk) { console.log('Data:', result.data);}
A promise resolving to the query result
A paginated query for listing friends. Create via UserModule.createFriendsQuery.