Action argument shows up as JsonString in graphql schema

I have this argument referencing another resource
argument :credentials, {:array, Credential}
change manage_relationship(:credentials, type: :direct_control)
argument :credentials, {:array, Credential}
change manage_relationship(:credentials, type: :direct_control)
however this argument is not showing the inputs that are available, is there a specific way to configure this so the input shows up correct in the schema?
3 Replies
ZachDaniel
ZachDaniel2y ago
I think you want argument :credentials, {:array, :map} and then a configuration for the managed_relationships in the graphql block
michaelst
michaelstOP2y ago
ah! thanks!

Did you find this page helpful?