rescript-relay icon indicating copy to clipboard operation
rescript-relay copied to clipboard

Start Relay Resolver Docs with basic examples

Open youngkidwarrior opened this issue 2 years ago • 2 comments

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:

  • [ ] Check graphql argument code and make sure it is correct
  • [ ] Write docs passing runtime arguments

youngkidwarrior avatar Dec 11 '23 06:12 youngkidwarrior

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.

zth avatar Dec 12 '23 18:12 zth

Okay, I'll take that part out for now

youngkidwarrior avatar Dec 12 '23 19:12 youngkidwarrior

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

zth avatar Aug 01 '24 14:08 zth