rmosolgo / graphiql-rails

Mount the GraphiQL query editor in a Rails app
MIT License
447 stars 135 forks source link

What should be the graphql_path? #22

Closed akash-cp closed 6 years ago

akash-cp commented 7 years ago

Can anyoner explain what should be the path?

# config/routes.rb
Rails.application.routes.draw do
  # ...
  if Rails.env.development?
    mount GraphiQL::Rails::Engine, at: "/graphiql", graphql_path: "/your/endpoint"
  end
end
rmosolgo commented 7 years ago

Hi!

What URL do you use for GraphQL queries? The path of that URL should be in "graphql_path". It's probably /graphql

iamclaytonray commented 6 years ago

This could probably be closed