zth / rescript-relay

Use Relay with ReScript.
https://rescript-relay-documentation.vercel.app/docs/getting-started
339 stars 53 forks source link

Start Relay Resolver Docs with basic examples #480

Closed youngkidwarrior closed 2 months ago

youngkidwarrior commented 10 months ago

Created these based off the part of resolvers I have used. I tried to take a stab at graphql fragment arguments, but I have never had to use those so not sure if correct

I just used the UserGreeting example the relay docs used. We might want a more "rescripty" example that shows off how well resolvers work with Variants and switch statement

TODO:

zth commented 9 months ago

I haven't tried passing JS arguments to resolvers in RescriptRelay yet myself. I would assume we need some deeper integration for that to work.

youngkidwarrior commented 9 months ago

Okay, I'll take that part out for now

zth commented 2 months ago

Superseded by recent doc updates. Thanks for the effort anyway!