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
{{ message }}
This repository was archived by the owner on Feb 10, 2019. It is now read-only.
The $middleware in GraphQLController will always be default if I'm not using default prefix.
I'm not using the default prefix, so my code won't work.
The text was updated successfully, but these errors were encountered:
ghost
changed the title
Cannot use middleware when not using default prefix and schema
Cannot use middleware when not using default prefix
Apr 30, 2018
ghost
changed the title
Cannot use middleware when not using default prefix
Cannot use middleware when not using default prefix and default schema
Apr 30, 2018
In Controller, it use
config('graphql.prefix')
as route parameter key:https://github.com/Folkloreatelier/laravel-graphql/blob/171631a17e4bf33780513f15221ea6052c67d498/src/Folklore/GraphQL/GraphQLController.php#L35-L41
But in
routes.php
it is actually use a hard-coded keygraphql_schema
in route define:https://github.com/Folkloreatelier/laravel-graphql/blob/1d94ab37f5051e6167e2a5421eacbe4d74994d55/src/Folklore/GraphQL/routes.php#L5
The
$middleware
in GraphQLController will always bedefault
if I'm not using default prefix.I'm not using the default prefix, so my code won't work.
The text was updated successfully, but these errors were encountered: