graphiql-rails icon indicating copy to clipboard operation
graphiql-rails copied to clipboard

Configurable HTTP method

Open brianstorti opened this issue 9 years ago • 1 comments

In case we want to use an http verb other than POST, it'd be useful to be able to specify it when we mount the engine. Something like:

mount GraphiQL::Rails::Engine, at: "/graphiql", graphql_path: "/graph", method: :get

If you thing this is useful, I can work on the change.

Thanks.

brianstorti avatar Feb 12 '16 09:02 brianstorti

Yes, that'd be great! Can we call it graphql_method? That way it matches graphql_path & it's clear that it's the method for the GraphQL API endpoint, not for the GraphiQL editor.

rmosolgo avatar Feb 12 '16 16:02 rmosolgo