Skip to content
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

Directives on root Query/Mutation/Subscription types #1552

Closed
psteinroe opened this issue May 25, 2021 · 1 comment
Closed

Directives on root Query/Mutation/Subscription types #1552

psteinroe opened this issue May 25, 2021 · 1 comment

Comments

@psteinroe
Copy link

psteinroe commented May 25, 2021

I'm submitting a...


[ ] Regression 
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

Currently, the schema is generated with

type Query {}

Because of an issue with mercurius, I need to add a directive to the root types, meaning that the schema should be

extend type Query {}

or

type Query @extends {}

Expected behavior

I cannot find a way to add directives to the root types using the code-first approach.

What is the motivation / use case for changing the behavior?

Its a really specific issue, so the motivation is mainly to be able to use mercurius federation.

@kamilmysliwiec
Copy link
Member

Please search through some of our old issues on this (this has been discussed several times in the past).

@nestjs nestjs locked and limited conversation to collaborators May 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants