You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And unable to running as nexus-prisma complains as below
Error: prismaObjectType can only be used by `makePrismaSchema`
I understand nexus-prisma is not intended to be used this way.
Thus, I wander if it is possible to have official plugin for normal graphql schema file.
Maybe, it's some what conflicts interest for prisma as a company.
But, let say if nexus could be a front end solution for legacy REST api or graphql with this kind of plugin,
it could have more chance to adapt prisma solution I hope.
Thank you.
The text was updated successfully, but these errors were encountered:
swcho
changed the title
Feature request: graphql-code-generator plugin
Feature request: nexus-graphql plugin
Jul 11, 2019
Basic idea is to have some kind of nexus-prisma like plugin for normal graphql schema file.
We absolutely want nexus to have plugins, have you taken a look at #200 yet?
Thus, I wander if it is possible to have official plugin for normal graphql schema file.
Could you just generate a data-loader aware client from you swagger, then use it to implement nexus resolvers?
Are you interested in having the models in swagger be forwarded to the GraphQL Schema like prisma-nexus does (in its case, forward Prisma schemas to the GraphQL API via .model)?
Maybe, it's some what conflicts interest for prisma as a company.
Not really :) While Prisma is focused on abstracting the database layer we fully expect to be running in polyglot architectures where there data is coming from a mix of sources. We want nexus to be great at this and nexus-prisma to mesh well with GraphQL API entities which are composites from multiple sources, not just Prisma. Integration and flexibility are key for many use-cases.
it could have more chance to adapt prisma solution I hope.
First of all, thank you for providing stunning solution.
I'd like to share my use case and if possible, I'd like to get some advice or relevant implementation plan.
Basic idea is to have some kind of
nexus-prisma
like plugin for normal graphql schema file.Here is my use case.
swagger.json
and it defines legacy internal APIs.nexus-prisma
does.nexus
for code first graphql server with resolver to legacy API endpointI tried this idea with next fork from
nexus-prisma
https://github.com/swcho/nexus-prisma/tree/study/examples-gql
And unable to running as
nexus-prisma
complains as belowI understand
nexus-prisma
is not intended to be used this way.Thus, I wander if it is possible to have official plugin for normal graphql schema file.
Maybe, it's some what conflicts interest for prisma as a company.
But, let say if
nexus
could be a front end solution for legacy REST api or graphql with this kind of plugin,it could have more chance to adapt prisma solution I hope.
Thank you.
The text was updated successfully, but these errors were encountered: