Closed forsbergplustwo closed 1 year ago
Yeah, adding that example to README would be nice. Very useful!
BTW do you still use GraphqlResponseRubyfier for wrapping responses?
Nice, will create PR :) Not using GraphqlResponseRubyfier as once I realised edges need the cursor, it was just as good going with json parse using the object_class: OpenStruct like you are. And it's much more foolproof/simpler than having the custom rybyfier.
Added examples for collections to README
Thanks for this gem, very nicely done! When working with xxxxxFields classes, it took me a while to work out the best way to parse collections, without complicating each querying class. Came up with the following in the end:
Happy to update README if you think it could be useful to others, or you have another suggested way?