Sha256: 7748e144662a5e880f1ca88ad769017b61a2f0c160080bf3f0217ad793696205
Contents?: true
Size: 496 Bytes
Versions: 3
Compression:
Stored size: 496 Bytes
Contents
# frozen_string_literal: true module GQLi # Mutation node class Mutation < Base # Serializes to a GraphQL string def to_gql result = <<~GQL mutation #{__name ? __name + ' ' : ''}{ #{__nodes.map(&:to_gql).join("\n")} } GQL result.lstrip end # Delegates itself to the client to be executed def __execute(client) client.execute(self) end # Serializes to a GraphQL string def to_s to_gql end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gqli-1.2.0 | lib/gqli/mutation.rb |
gqli-1.1.0 | lib/gqli/mutation.rb |
gqli-1.0.0 | lib/gqli/mutation.rb |