7 8 9 10 11 12 13 14 15 16
# File 'lib/graphql_client/query/mutation_document.rb', line 7 def self.new(schema, name = nil) document = Document.new(schema) mutation = document.add_mutation(name) if block_given? yield mutation end mutation end