How to set up resolve_type for loads in 2.2? #4797
-
I'm trying to upgrade to 2.2, which seems to require a resolve_type method, but I'm struggling to understand what this should be. It was working fine for us in 2.1, so I imagine there's template code (equivalent to 2.1 behaviour) that we could drop in. What is that? This should probably also be in the docs for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Found the code from https://github.com/rmosolgo/graphql-ruby/pull/4678/files#diff-ca02a7189be9dc9f1c0d328028ba139f8be8da82eca96bbfccd3c098b5ad03f7L934 So a basic example would be:
|
Beta Was this translation helpful? Give feedback.
Found the code from https://github.com/rmosolgo/graphql-ruby/pull/4678/files#diff-ca02a7189be9dc9f1c0d328028ba139f8be8da82eca96bbfccd3c098b5ad03f7L934
So a basic example would be: