Method: GraphQL::Schema::Warden#fields
- Defined in:
- lib/graphql/schema/warden.rb
#fields(type_defn) ⇒ Array<GraphQL::Field>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns Fields on type_defn.
311 312 313 314 |
# File 'lib/graphql/schema/warden.rb', line 311 def fields(type_defn) @visible_fields ||= read_through { |t| @schema.get_fields(t, @context).values } @visible_fields[type_defn] end |