Skip to content

Commit

Permalink
use future/past-proof field configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo committed Feb 11, 2019
1 parent a6e58f6 commit d335686
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/support/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,12 @@ def product_variants_count(id:)
end

class CounterType < GraphQL::Schema::Object
field :value, Int, null: false, resolver_method: :object
field :value, Int, null: false

def value
object
end

field :load_value, Int, null: false

def load_value
Expand Down

0 comments on commit d335686

Please sign in to comment.