-
Notifications
You must be signed in to change notification settings - Fork 55
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
can we pass schema to Apollo Service Mixin #114
Comments
In looking at service.js it appears that you can pass a @iasbm I'm trying to follow a little bit more about what your intention with passing the schema here is. The primary benefit of this library is that it will generate the schema and bind queries and mutations to the appropriate moleculer action. To do so, you specify your queries and mutations in the context of an action and then It's possible that https://github.com/shawnmcknight/moleculer-graphql might better serve your purposes. You can't specify a "schema" with that library, but you can specify the full type definitions and then bind to queries/mutations by name. It will allow child resolvers that do not have to be bound to an action. The downside there is that library is not yet documented not is it being used in production anywhere. You'd have to peruse the examples to get a feel for how its working. |
First of all thanks a lot for your response @shawnmcknight . So as part of this, we want to remove NESTJS but still use TypeORM and GraphQL but with single GraphQL aware API GW entry point. |
@shawnmcknight yeah, it looks like it was a planned property to pass a whole generated schema but it's never implemented. |
First of all thanks for your efforts in Moleculer JS Microservices frwk for NodejS.
We are in the process of transforming our beta application (which already uses GraphQL) into microservices using Moleculer.
We just explored the ApolloService Mixin but not able to find an option of how to pass "Schema" ( as we look to generate this using our existing TypeScript (TS) class based Resolvers, services, and Models) as part of Apolloservice option? Not sure if it is supported out of the box now? If not do we need to transform our existing TS based Resolvers into as per your examples?
@shawnmcknight just want to request for your attention if we have an option to pass Schema to Apollo Service Mixing please. Is it not out of the box supported for now. thanks in advance
The text was updated successfully, but these errors were encountered: