Allow to pass block to graphql_mutation helper
Adds a syntactic sugar for the `graphql_mutation` method which allows passing a block as a GraphQL query. Example before: ``` graphql_mutation(:update_alert_status, variables.merge(input), <<~QL clientMutationId errors alert { iid status } QL ) ``` Example after: ``` graphql_mutation(:update_alert_status, variables.merge(input)) do <<~QL clientMutationId errors alert { iid status } QL end ```
Showing
Please register or sign in to comment