-
-
Notifications
You must be signed in to change notification settings - Fork 821
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
advise against using schema wrapping #4278
Comments
Interested in this, but what do you mean "advise against"? People who come to But the question we have is - what do we use? I agree this can be a bit unclear, but for me this helped:
We started with
IMO the docs should be restructured. Today we have:
I think that it should be like this:
|
People have used wrapSchema (including me :D) where mapSchema is more performant if you simply have a GraphQL schema with resolvers. I dont wanna say there is no need for wrapSchema at all, we should streamline more whether people should use it for achieving X or not. |
wrapSchema
usually results in bad performance as it generates a proxy schema.From looking at https://www.graphql-tools.com/docs/schema-wrapping it is unclear to me which use-cases I might wanna use
wrapSchema
and what I should prefer to use instead?The page should start with an disclaimer and guidance on what to use, preferably with real-world examples.
E.g. For use-case X use
wrapSchema
, otherwise use Y.The text was updated successfully, but these errors were encountered: