Class: GraphqlRails::Router::MutationRoute

Inherits:
Route
  • Object
show all
Defined in:
lib/graphql_rails/router/mutation_route.rb

Overview

stores mutation type graphql action info

Instance Attribute Summary

Attributes inherited from Route

#groups, #module_name, #name, #on, #relative_path, #scope_names

Instance Method Summary collapse

Methods inherited from Route

#collection?, #field_options, #initialize, #path, #show_in_group?

Constructor Details

This class inherits a constructor from GraphqlRails::Router::Route

Instance Method Details

#event?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/graphql_rails/router/mutation_route.rb', line 17

def event?
  false
end

#mutation?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/graphql_rails/router/mutation_route.rb', line 13

def mutation?
  true
end

#query?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/graphql_rails/router/mutation_route.rb', line 9

def query?
  false
end