Hi, I’m currently using prisma-yoga with a prisma ...
# orm-help
b
Hi, I’m currently using prisma-yoga with a prisma db cloud instance which is working great. I want to pull in some blog post content using the wordpress graphql plugin https://github.com/wp-graphql/wp-graphql I would like to handle one endpoint on the client side /graphql and let yoga control the two data sources on the server. Any advice on the best way to achieve this would be great. I did find a post which discusses using multiple prisma api’s https://www.prisma.io/forum/t/using-multiple-graphql-servers-with-one-shared-service/3644/4
e
Hi! Do you want to have multiple prisma services ? Like "something/prod", "something/dev", "default/prod",... ?
b
You could also write a resolver that doesn't make a call to prisma, but sends the query, or queries, the Wordpress instance. Or, you could write a re-direct given an argument parameter. @Errorname, do you think these would also be viable options? I do agree with you that it does depend on the need/intended use.
b
Thanks guys, Initially, I only plan on sending queries to the wordpress, no mutations. Writing a custom resolver sounds like a good plan. Have you seen any example prisma-yoga code that is using two data sources?