-
-
Notifications
You must be signed in to change notification settings - Fork 438
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
Extended types does not respect root @group(namespace) directive #402
Comments
That is indeed the expected behaviour, We might expand the directives the namespace applies to, but we should do it selectively. It does not make sense for every directive that mentions a class in any way. Feel free to open up a discussion in another issue if that is something you care about. The following should work, but is currently broken. I just finished a fix for it. extend type Mutation {
doSomething(id: ID!): String
@field(resolver: "SomeMutation@doSome")
} |
The default namespaces |
So, extended types will inherit default namespace resolution? |
If they are extensions of
|
Describe the bug
Even setting a
@group(namespace)
directive on root types it will not reflect on extend types.Expected behavior
The extend types should respect the root
@group(namespace)
directive. Is this an expected behavior? Should i repeat "the full namespace" in every single extended type?Schema
Output/Logs
Environment
Lighthouse Version: dev-master (a9c4c47)
Laravel Version: 5.7
PHP Version: 7.2
Additional context
Default namespaces does not work also for
extend type Query
like@paginate(builder: "Class@method")
The text was updated successfully, but these errors were encountered: