Class: GraphitiGql::Schema::Query
- Inherits:
-
Object
- Object
- GraphitiGql::Schema::Query
- Defined in:
- lib/graphiti_gql/schema/query.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(resources, existing_query: nil) ⇒ Query
constructor
A new instance of Query.
Constructor Details
#initialize(resources, existing_query: nil) ⇒ Query
Returns a new instance of Query.
4 5 6 7 8 |
# File 'lib/graphiti_gql/schema/query.rb', line 4 def initialize(resources, existing_query: nil) @resources = resources @query_class = Class.new(existing_query || Schema.base_object) @query_class.graphql_name "Query" end |
Instance Method Details
#build ⇒ Object
10 11 12 13 |
# File 'lib/graphiti_gql/schema/query.rb', line 10 def build define_entrypoints @query_class end |