"'users' has no argument named 'filter'"
Hello,
I am trying to setup this example https://example.crm.refine.dev/
Using an API through supabase with GraphQL
But i keep getting stuck with an error when updating the settings.tsx file.
message: "'users' has no argument named 'filter'", statusCode: 'validation-failed'
And they payload seems to be passing this
operationName
:
"AdministrationUsers"
query
:
"query AdministrationUsers($filter: UserFilter!, $sorting: [UserSort!], $paging: OffsetPaging!) {\n users(filter: $filter, sorting: $sorting, paging: $paging) {\n nodes {\n id\n name\n jobTitle\n role\n avatarUrl\n }\n totalCount\n }\n}\n"
variables
:
{filter: {}, sorting: [{field: "createdAt", direction: "DESC"}], paging: {limit: 10, offset: 0}}
filter
:
{}
paging
:
{limit: 10, offset: 0}
sorting
:
[{field: "createdAt", direction: "DESC"}]
I don't understand where it is getting the variables from, or how i can modify my code to work.
I am using Hasura for the schema and the table i've setup is called
users
with the columns
name
jobTitle
role
avatarUrl Text
createdAt
Can anyone guide me abit with this? ChatGPT has been helpful, but i feel like i'm stuck at what to look for.
Sorry if i am missing any crucial information, still new to this
I am trying to setup this example https://example.crm.refine.dev/
Using an API through supabase with GraphQL
But i keep getting stuck with an error when updating the settings.tsx file.
message: "'users' has no argument named 'filter'", statusCode: 'validation-failed'
And they payload seems to be passing this
operationName
:
"AdministrationUsers"
query
:
"query AdministrationUsers($filter: UserFilter!, $sorting: [UserSort!], $paging: OffsetPaging!) {\n users(filter: $filter, sorting: $sorting, paging: $paging) {\n nodes {\n id\n name\n jobTitle\n role\n avatarUrl\n }\n totalCount\n }\n}\n"
variables
:
{filter: {}, sorting: [{field: "createdAt", direction: "DESC"}], paging: {limit: 10, offset: 0}}
filter
:
{}
paging
:
{limit: 10, offset: 0}
sorting
:
[{field: "createdAt", direction: "DESC"}]
I don't understand where it is getting the variables from, or how i can modify my code to work.
I am using Hasura for the schema and the table i've setup is called
users
with the columns
name
jobTitle
role
avatarUrl Text
createdAt
Can anyone guide me abit with this? ChatGPT has been helpful, but i feel like i'm stuck at what to look for.
Sorry if i am missing any crucial information, still new to this
