Description
Describe the bug
The Pledges section fails to load due to issues with the GraphQL query. The error message indicates that the PledgeWhereInput and PledgeOrderByInput types are not recognized, and the field getPledgesByUserId is not found on the Query type. This suggests a mismatch between the frontend query and the backend schema.
To Reproduce
Steps to reproduce the behavior:
1.Open Talawa Admin (develop-postgres branch)
2. Login to the User Portal using [email protected].
3. Join an Organization & Visit an Organization Page
4. Navigate to My Pledges
Expected behavior
The pledges associated with the user should be fetched and displayed correctly.
Actual behavior
The page displays an error message:
- "Unknown type 'PledgeWhereInput'. Did you mean 'MembersWhereInput'?"
- "Unknown type 'PledgeOrderByInput'."
- "Cannot query field 'getPledgesByUserId' on type 'Query'."
Screenshots
Additional details
- Verify that PledgeWhereInput and PledgeOrderByInput exist in the GraphQL schema (talawa-api).
- Check if the getPledgesByUserId query and related types (PledgeWhereInput, PledgeOrderByInput) exist in the backend. If they exist, update the frontend to match; if not, add the necessary query and types in the backend.
Potential internship candidates
Please read this if you are planning to apply for a Palisadoes Foundation internship
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Backlog