Closed ghost closed 6 years ago
Maybe we can fix the issue you try to fix here: https://github.com/tb/northwind-graphql-ruby/blob/master/app/graphql/functions/create_contactable.rb
with optional: true in https://github.com/tb/northwind-graphql-ruby/blob/master/app/models/contact.rb
optional: true
like they say here: https://github.com/rails/rails/issues/29781.
At least is better than a new function.
Maybe I will PR now.
Sorry for the 3 PRs, I don't know how to edit multiple files online way.
Fix works, thanks!
Maybe we can fix the issue you try to fix here: https://github.com/tb/northwind-graphql-ruby/blob/master/app/graphql/functions/create_contactable.rb
with
optional: true
in https://github.com/tb/northwind-graphql-ruby/blob/master/app/models/contact.rblike they say here: https://github.com/rails/rails/issues/29781.
At least is better than a new function.
Maybe I will PR now.