Skip to content
New issue

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

Filter error in testing query #265

Closed
libinvarkey opened this issue May 31, 2021 · 2 comments
Closed

Filter error in testing query #265

libinvarkey opened this issue May 31, 2021 · 2 comments
Labels

Comments

@libinvarkey
Copy link

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) => {

  expect(json.errors).toBeFalsy();
  expect(json.data).toBeTruthy();
  expect(json.data.allDmsPhysicalRoVwStoreMasters.totalCount).toBe(2);
  // expect(json.data.currentUser).toMatchObject({
  //     id: user.id,
  // });
}

);
});

@benjie
Copy link
Member

benjie commented May 31, 2021

Perhaps you've not installed the filter plugin? Please follow the issue template; I will not tell you again.

@libinvarkey
Copy link
Author

@benjie thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants