Class: GraphQL::PersistedQueries::Analyzers::HttpMethodAstAnalyzer
- Inherits:
-
Analysis::AST::Analyzer
- Object
- Analysis::AST::Analyzer
- GraphQL::PersistedQueries::Analyzers::HttpMethodAstAnalyzer
- Defined in:
- lib/graphql/persisted_queries/analyzers/http_method_ast_analyzer.rb
Overview
Verifies that mutations are not executed using GET requests
Instance Method Summary collapse
-
#initialize(query) ⇒ HttpMethodAstAnalyzer
constructor
A new instance of HttpMethodAstAnalyzer.
- #result ⇒ Object
Constructor Details
#initialize(query) ⇒ HttpMethodAstAnalyzer
Returns a new instance of HttpMethodAstAnalyzer.
8 9 10 11 |
# File 'lib/graphql/persisted_queries/analyzers/http_method_ast_analyzer.rb', line 8 def initialize(query) super @query = query end |
Instance Method Details
#result ⇒ Object
13 14 15 |
# File 'lib/graphql/persisted_queries/analyzers/http_method_ast_analyzer.rb', line 13 def result HttpMethodValidator.new(@query).perform end |