prisma-labs / graphql-framework-experiment

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

Relay Server Spec compliant example with nexus #537

Open outerlook opened 4 years ago

outerlook commented 4 years ago

What

Is there any available example of building common features that are compliant to relay server spec with nexus?

Why

How

Here's a gist showing how I implemented some parts, which I've not even tested, just to keep this available if some of it is useful https://gist.github.com/outerlook/c88a98335f976bba0a51db9de135f0c5

I really appreciate your work. Thank you

jasonkuhrt commented 4 years ago

Hey @outerlook have you looked at https://www.nexusjs.org/#/api/modules/main/exports/schema?id=tconnection.

JCMais commented 4 years ago

I'm also in the process of implementing a Relay-compliant GraphQL server using Nexus (@nexus/schema only to be more specific), and I have been creating a few plugins to help with that, you can find them here https://github.com/JCMais/nexus-plugins

jasonkuhrt commented 4 years ago

@JCMais fyi @Weakky just worked on this area. You two should talk :)

https://github.com/vercel/next.js/pull/15752