Module: RSpec::GraphqlAssistant::Helpers
- Defined in:
- lib/rspec/graphql_assistant/helpers.rb
Instance Method Summary collapse
- #graphql_mutation(name, args, response) ⇒ Object
- #graphql_query(name, args, response) ⇒ Object
- #graphql_subscription(name, args, response) ⇒ Object
Instance Method Details
#graphql_mutation(name, args, response) ⇒ Object
5 6 7 |
# File 'lib/rspec/graphql_assistant/helpers.rb', line 5 def graphql_mutation(name, args, response) QueryBuilder.new(:mutation, name, args, response).call end |
#graphql_query(name, args, response) ⇒ Object
9 10 11 |
# File 'lib/rspec/graphql_assistant/helpers.rb', line 9 def graphql_query(name, args, response) QueryBuilder.new(:query, name, args, response).call end |
#graphql_subscription(name, args, response) ⇒ Object
13 14 15 |
# File 'lib/rspec/graphql_assistant/helpers.rb', line 13 def graphql_subscription(name, args, response) QueryBuilder.new(:subscription, name, args, response).call end |