You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried testing the authentication process with PHPUnit. I have managed to test all mutations apart from the logout.
$this->mutation('logout', ['status', 'message']); logout = the mutation, [status and message] = the LogoutResponse payload
When I run that, I get the below error message:
“message” => “Syntax Error: Expected Name, found Int”
It would seem that it is asking for a second parameter (Which I am guessing is the Authorization Bearer info), but in the schema, there are no parameters, just the payload:
When using mutations with only two arguments the second argument is expected to be the arguments. Only for queries you can omit the arguments by only using two arguments.
I have tried testing the authentication process with PHPUnit. I have managed to test all mutations apart from the logout.
$this->mutation('logout', ['status', 'message']); logout = the mutation, [status and message] = the LogoutResponse payload
When I run that, I get the below error message:
“message” => “Syntax Error: Expected Name, found Int”
It would seem that it is asking for a second parameter (Which I am guessing is the Authorization Bearer info), but in the schema, there are no parameters, just the payload:
Schema: logout: LogoutResponse!
I have got it working with another package:
$response = $this->postGraphQL([
'query' => 'mutation {
logout {
status
message
}
}'
], [
'Authorization' => 'Bearer '.$token
]);
But I would ideally like to get it working with your package.
Would appreciate a stir in the right direct.
The text was updated successfully, but these errors were encountered: