Closed gopeter closed 6 years ago
"exception": "#<NoMethodError: undefined method `archived' for #<Project::ActiveRecord_Relation:0x007fdbde6bc530>>",
means that you are missing scope method named archived
in your Project
model - check https://github.com/tb/northwind-graphql-ruby/blob/master/app/models/supplier.rb#L11
🤦♂️ Sorry, work's as expected now!
Thanks for this great demo app! Helped me a lot to understand some of the
graphql-ruby
's methods :)I tried to adapt some concepts of the demo to my own GraphQL API, but found a problem with boolean arguments.
Example:
and
returns:
If I use Rails' native
.where
method, boolean arguments are working:But I'm not sure if this could lead to some other unknown drawbacks. Performance should be not an issue since Rails builds the entire where clause:
leads to
So do you have any thoughts on this? :)