Closed leosoaivan closed 6 years ago
Figured it out. It seems the post route shouldn't have been nested. Closing!
I'm getting the same error. Can you tell me what solved the problem? These are my routes:
Rails.application.routes.draw do
if Rails.env.development?
mount GraphiQL::Rails::Engine, at: "/graphiql", graphql_path: "/graphql"
end
post "/graphql", to: "graphql#execute"
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
# Defines the root path route ("/")
# root "articles#index"
end
Having same issue here in dev mode than @Jorge-Ortiz-Mata
I'm currently learning Rails API-only development and versioning, and I'd like to implement GraphQL and play with GraphiQL. I'm currently getting the error above. It's probably a simple issue, and I apologize, but I'm stuck.
My routes are as follows:
Thanks in advance. Any insight would be appreciated.