We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using filter in error got error [GraphQLError: Unknown argument "filter" on field "Query.dmsPhysicalRwGoalSetting".],
code:-- test("allDmsPhysicalRoVwStoreMasters", async () => { //const data = GetDashboardItemsData; await RunGraphQLQuery( // GraphQL query goes here: query getGoalSettingsByGroupName($group_name: String, $store_id: String) { dmsPhysicalRwGoalSetting(filter: { groupName: { equalTo: $group_name }, storeId: { equalTo: $store_id } }) { nodes { goalId goalName goalValue storeId } } } , // GraphQL variables: { group_name: "abc", store_id: "1234", }, // Additional props to add to req (e.g. user: {session_id: '...'}) {}, // This function runs all your test assertions: async (json) => {
query getGoalSettingsByGroupName($group_name: String, $store_id: String) { dmsPhysicalRwGoalSetting(filter: { groupName: { equalTo: $group_name }, storeId: { equalTo: $store_id } }) { nodes { goalId goalName goalValue storeId } } }
req
user: {session_id: '...'}
expect(json.errors).toBeFalsy(); expect(json.data).toBeTruthy(); expect(json.data.allDmsPhysicalRoVwStoreMasters.totalCount).toBe(2); // expect(json.data.currentUser).toMatchObject({ // id: user.id, // }); }
); });
The text was updated successfully, but these errors were encountered:
Perhaps you've not installed the filter plugin? Please follow the issue template; I will not tell you again.
Sorry, something went wrong.
@benjie thanks
No branches or pull requests
When using filter in error got error
[GraphQLError: Unknown argument "filter" on field "Query.dmsPhysicalRwGoalSetting".],
code:--
test("allDmsPhysicalRoVwStoreMasters", async () => {
//const data = GetDashboardItemsData;
await RunGraphQLQuery(
// GraphQL query goes here:
query getGoalSettingsByGroupName($group_name: String, $store_id: String) { dmsPhysicalRwGoalSetting(filter: { groupName: { equalTo: $group_name }, storeId: { equalTo: $store_id } }) { nodes { goalId goalName goalValue storeId } } }
,// GraphQL variables:
{
group_name: "abc",
store_id: "1234",
},
// Additional props to add to
req
(e.g.user: {session_id: '...'}
){},
// This function runs all your test assertions:
async (json) => {
);
});
The text was updated successfully, but these errors were encountered: