Sha256: 43050008e0b92f7497ef8f835ae8e84e43765b90a723324517f2840635998eb0
Contents?: true
Size: 501 Bytes
Versions: 2
Compression:
Stored size: 501 Bytes
Contents
# frozen_string_literal: true module GQLi # Query node class Subscription < Base # Serializes to a GraphQL string def to_gql result = <<~GQL subscription #{__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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gqli-0.6.1 | lib/gqli/subscription.rb |
gqli-0.6.0 | lib/gqli/subscription.rb |