added enpoint for users verification status#213
Conversation
|
""" WalkthroughA new GraphQL query, Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant GraphQLServer
participant UserResolver
participant Database
Client->>GraphQLServer: Query getUsersVerificationStatus(hasDonated, privadoVerified, humanVerified)
GraphQLServer->>UserResolver: getUsersVerificationStatus(args)
UserResolver->>Database: Build and execute filtered user query
Database-->>UserResolver: Return users and count
UserResolver-->>GraphQLServer: Return UsersData { users, totalCount }
GraphQLServer-->>Client: Respond with UsersData
Poem
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
ae2079
left a comment
There was a problem hiding this comment.
It looks good BTW, you can apply changes and merge it to staging and test it on that
| } | ||
|
|
||
| @Query(_returns => UsersData) | ||
| async getUsersVerificationStatus( |
There was a problem hiding this comment.
I think we need to have skipped verification users as well
| } | ||
|
|
||
| @ObjectType() | ||
| class UsersData { |
There was a problem hiding this comment.
maybe it is better to have another endpoint too, to get all the users who donated and specify the type of verification of them, and have count of each verification type. it is more related to what Tam requested
Summary by CodeRabbit
New Features
Tests