Robert Mosolgo
Robert Mosolgo
I'm ... not sure 😬 What does it look like is required?
Hey, great question. You're right, as far as I know, that nobody has developed a GraphiQL connector for ActionCable subscriptions. As far as testing goes, you can inject a dummy...
Have you investigated Field Extensions for this purpose? https://graphql-ruby.org/type_definitions/field_extensions.html They: - Accept options - Can modify returned values in the `def after_resolve` hook I think it would work well for...
You can modify the field's argument configuration in `def apply`, for example: https://github.com/rmosolgo/graphql-ruby/blob/dadb5b3ba1edd41038ee86d2e651711c8c4018d2/lib/graphql/schema/field/connection_extension.rb#L7-L12 and you can modify the incoming argument values in `def resolve`, for example: https://github.com/rmosolgo/graphql-ruby/blob/dadb5b3ba1edd41038ee86d2e651711c8c4018d2/lib/graphql/schema/field/connection_extension.rb#L14-L22 I think you...
Thanks for writing up this issue, it certainly reflects the one-patch-at-a-time approach to development 😆 But if it only comes up once every 5 years, that's not _too_ bad! I...
:+1: Sure, I agree that would be a nice improvement!
Yes, it's definitely possible. There are currently `delete_subscription(sub_id)` hooks which are used for cleaning up whatever persistence backend the subscription system uses: https://github.com/rmosolgo/graphql-ruby/blob/a242ffabf395369700b9a26c4b79f10a4234b4f4/lib/graphql/subscriptions/action_cable_subscriptions.rb#L215 We could leverage that same hook to...
> trigger something Just curious, do you mean that you want to send more data to the client from this point? (It could be tricky, but it might be possible...)
Hey, sorry for the silence on this. I _did_ look into it a while ago, but I found that there's no _easy_ way to work it into the existing implementation....
Ahh -- thanks for opening this. I see that the `Query.id` field uses `GraphQL:Types::Relay::Node`. It needs some way to accept a return type in the configuration. I'll see what I...