Robert Mosolgo
Robert Mosolgo
What do you think of accepting procs as types as a good next step? It seems like _any_ future in this area will need a way to load `some_type.rb` without...
My latest attempt is to build a replacement for `Warden` which doesn't make as much heavy use of the top-level, schema-wide hashes of types, etc: https://github.com/rmosolgo/graphql-ruby/pull/4998 I think this approach...
That's great, I'm glad you found something that works for now :+1: What does `.run_load_hooks_once` do? What kind of things run in those hooks?
Thanks for sharing, very cool. No hurry on #4998, I'm going to keep chipping away at it over there. I've got it nearly full parity with Warden, but I think...
Update here: The new `Schema::Subset` class isn't documented yet, but it can be enabled by `self.use_schema_subset = true` in your schema. (I will change that to something ... nicer.) When...
I added docs for this in 4625e59cd. It's available in 2.3.x latest and I'll announce it on the mailing list after I release 2.4.0.
Hey, thanks for the suggestion! I think that's a great idea. Here's how you could add that in your own app in the meantime: ```ruby # In your Application setup:...
Here's an approach that would work in 2.0.x: ```ruby # Assuming `class Current < ActiveSupport::CurrentAttributes` as in https://api.rubyonrails.org/classes/ActiveSupport/CurrentAttributes.html # Substitute your own global state object as-needed module ActiveRecordQueryLogsInstrumenter def self.begin_multiplex(multiplex)...
v2.3.11 will include a new module, `GraphQL::Current` with some helpers for this: https://github.com/rmosolgo/graphql-ruby/blob/master/lib/graphql/current.rb. Thanks again for the suggestion!
Hey, thanks for this suggestion. Yes, I can see how this would be useful, and how descriptions aren't quite the right thing. A third alternative might be to use directives...