Skip to content

Commit

Permalink
Set up Metaphysics in bin/console for easier debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki24 committed Nov 4, 2018
1 parent 6019ac6 commit 7cce08f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
require "bundler/setup"
require "artemis"

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
Artemis::Client.query_paths = [File.join(__dir__, '../spec/fixtures')]
Artemis::GraphQLEndpoint.register!(:metaphysics, adapter: :test, url: '', schema_path: 'spec/fixtures/metaphysics/schema.json')
Artemis::GraphQLEndpoint.lookup(:metaphysics).load_schema!
require_relative '../spec/fixtures/metaphysics'

# (If you use this, don't forget to add pry to your Gemfile!)
# require "pry"
# Pry.start

require "irb"
IRB.start(__FILE__)
require "pry"
Pry.start

0 comments on commit 7cce08f

Please sign in to comment.