Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninitialized constant GraphqlController::GraphQLIntroSchema Did you mean? GraphQlIntroSchema #86

Closed
Souravgoswami opened this issue Jul 29, 2020 · 1 comment

Comments

@Souravgoswami
Copy link

Hi, I am just getting started with GraphQL.

  1. I created one app, and ran:
$ bundle add graphql graphiql-rails

Which added:

gem "graphql", "~> 1.11"
gem "graphiql-rails", "~> 1.7"

to Gemfile

  1. Ran
$ rails g graphql:install
  1. Typed this content to app/assets/config/manifest.js:
//= link graphiql/rails/application.css
//= link graphiql/rails/application.js
  1. Typed this content to config/routes.rb:
Rails.application.routes.draw do
	if Rails.env.development?
		mount GraphiQL::Rails::Engine, at: '/graphiql', graphql_path: '/graphql'
	end
end
  1. Ran server:
rails s -b 0 -p 8080
  1. Browsed to /graphiql, and got this error:

image

@Souravgoswami
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant