lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb



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