-
-
Notifications
You must be signed in to change notification settings - Fork 818
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
mergeSchemas with string typedefs drops schema directives #862
Comments
I'm not sure, if Perhaps that's the reason why your Directives get lost, when merging schemas. |
I'm having a similar issue now, any updates? |
@freiksenet do you have any comments on this? |
I have the same issue. We have numerous schema modules that are merged using mergeSchemas(). The combined schema does not contain any custom directives. |
Solved #1003, but
unmerged
…On Wed, 30 Jan 2019, 15.33 Peter Milne, ***@***.***> wrote:
I have the same issue. We have numerous schema fragments that are merged
using mergeSchemas(). The combined schema does not contain any custom
directives.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#862 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKjiLfXeBsh-DmFCNJPuxNft6yR9fqbks5vIZ8MgaJpZM4U1Ia8>
.
|
any news? It's blocking for me as well |
Waiting for news as well. |
Looks like #1003 was merged one month ago. It should be available via the 5.0.0 alpha tag https://github.com/apollographql/graphql-tools/blob/master/CHANGELOG.md |
Tried to install all used Apollo modules to the next tag. Nothing happened. |
I switched to this project for now: https://github.com/Urigo/merge-graphql-schemas |
You might also try graphql-tools-fork. |
Any luck on this? |
Does it work in the fork? https://npmcharts.com/compare/graphql-tools-fork |
https://github.com/awslabs/graphql-schema-utilities merges directives. |
Fixed in latest stable release, set mergeDirectives to true. |
I've faced problem, that my schema directives don't work at all. There are numerous issues about directives in tracker, maybe they all are related to this
I have multiple modular schemas that are merged.
For example a schema:
And another:
Directive resolvers are:
And nothing is fired.
After long digging I've found the following:
Had no luck to make this work, a huge stopper :(
UPD
I've used this to test and run it at different points of execution:
Running it over
this._schemaCache
from example above results in console.log calls.BUT!
I further need to collect several merged and processed schemas and to merge them again:
And running above visitor over
merged
results in nothing.But there is an important thing: overrides contains string typedefs — I use them to resolve some merging conflicts with
graphql-import
. If I remove them — visitor works. So the problem is in merging schema with string typedefsThe text was updated successfully, but these errors were encountered: