Open pert5432 opened 2 days ago
Hey, thanks for the detailed report. I agree there should be some way to make nodes
broadcastable. It seemse like field_options
is supposed to be used for that, but I guess it's not quite doing the job! I'll take a look soon and follow up here.
Hi, We are trying to implement broadcasting and can't set
broadcastable: true
fornodes
fields from Relay.Setting it in the field definition like this:
field :replies, Types::Chat::MessageType.connection_type, broadcastable: true
doesn't work presumably becauseconnection_type
doesn't pass any field options to creation of the node field: (schema/member/relay_shortcuts.rb:53)types/relay/connection_behaviors.rb:57
If I hardcode the parameter into the
edge_type
call like this it makes the field broadcastable:I tried setting the param in our connection type like so
nodes_field(field_options: { broadcastable: true })
with no success. The connection type is used in ourBaseObject
like this:connection_type_class Types::ExtendedConnection
.Is there a way we can set these fields to broadcastable?