Sha256: e93665efff413b4419c330f013f2640441c1ea3560e300ea64f43028317efd51

Contents?: true

Size: 399 Bytes

Versions: 7

Compression:

Stored size: 399 Bytes

Contents

module Eco::API::UseCases::GraphQL::Helpers::Base
  # Basic stuff you would need in any use case
  module GraphQLEnv
    include CaseEnv

    private

    def graphql
      msg = "The credentials or basic graphql config are missing for the active environment"
      raise msg unless session.api?(version: :graphql)

      @graphql ||= session.api(version: :graphql)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
eco-helpers-3.0.21 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.20 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.19 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.18 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.17 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.16 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.15 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb