mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-25 23:55:55 +03:00
[GH-ISSUE #52] Mutation is working fine but when try to use query it does not returns the data instead shows api failure message. #32
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gql-query-builder#32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Ppkd2021 on GitHub (Oct 17, 2020).
Original GitHub issue: https://github.com/atulmy/gql-query-builder/issues/52
Code : const getTopPostsByGroupIdQuery = query({
operation:
getTopPostsByGroupId,variables: {
groupId: {value:
3d42529f-e129-4e8f-87a8-e53a0a0fccbe, required: true},postType: {value:
Text, required: true},limit: {value: 10, required: true},
startMonth: {value: 10, required: true},
endMonth: {value: 10, required: true},
startYear: {value: 2019, required: true},
endYear: {value: 2020, required: true}
},
fields: [
activityRate,postCreatedAtUTC,commentCount]cy.api({
method:
POST,url: appSyncUrl,
headers: {
authorization:noGroupAdminAuth
},
body: getTopPostsByGroupIdQuery
}).then(({body}) => {
const {
data: {getTopPostsByGroupId},
errors: [{errorType, message}]
} = body;
Can you please check if anything is missing in above code.
@Ppkd2021 commented on GitHub (Oct 17, 2020):
Not an issue.