prisma-labs / graphql-framework-experiment

Code-First Type-Safe GraphQL Framework
https://nexusjs.org
MIT License
674 stars 66 forks source link

Generate Genql graphql client instance out of box #1053

Open jasonkuhrt opened 4 years ago

jasonkuhrt commented 4 years ago

Perceived Problem

Ideas / Proposed Solution(s)

jasonkuhrt commented 4 years ago

Started a spike today, got stuck on https://github.com/remorses/genql/issues/3.

jasonkuhrt commented 4 years ago

Ok got unstuck and proved it out in the hello world example:

image

Notes

JustinVoitel commented 4 years ago

If anyone is still interested in this, I created a plugin that generates a genql client whenever api.graphql is updated: nexus-plugin-genql. No docs yet but its pretty straithforward to get started

jasonkuhrt commented 4 years ago

API is coming https://github.com/remorses/genql/issues/21