Closed diegomengarda closed 6 years ago
I'm not sure but a few things pop up to me which look weird…
This is the name of the query for the outside, yet in your example you use fetchUsers
?
Is this filter supposed to be the same? Because the names/cases are different. IMHO both should just be Filter
:
Not sure about the last, but in your Screenshot params
is red underlined and you don't use $params
in your query.
I could be wrong but on the first glance, things simply look a bit off here.
This config allows me to use the short names My types and queries are registrated like that: config/graphql.php
'types' => [
'filter' => FilterType::class
]
'query' => [
'users' => UsersQuery::class
]
And like a said i already tested the query without the "params".
I had to remove the attribute model from UsersQuery to work correctly
Hey guys i'm trying to use query variables in my app but the value of the variables is empty.
Here is my code.
Query and result
I already tried remove the "params" from the query variables but the result was empty too.
Anyone can help me with this problem ?
Thanks!