AshJsonApi: Create relationship when creating resource

The best way to go about this is to use manage_relationship i.e

create :create do
  argument :relationship, {:array, :map}
  change manage_relationship(:relationship, type: :create)
end

Then you can provide that as an input.