rmosolgo / graphiql-rails

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

GraphIQL does not remember queries, as it does in the default library. #6

Closed jwaldrip closed 7 years ago

jwaldrip commented 8 years ago

If you go to graphql.brandfolder.com and enter the following query, on reload it persists. This is a feature of the native graphIQL, would like to know why it isn't present in the rails version.

{
  slug(uri: "brandfolder") {
    id
  }
}
rmosolgo commented 8 years ago

Oops, it was overriding query instead of defaultQuery. Also, I maybe GraphiQL has an error regarding defaultQuery (https://github.com/graphql/graphiql/pull/130). I patched the vendored version by hand.

Could you try version 1.2.0? (It also has GraphiQL 0.7.0)

rmosolgo commented 7 years ago

Hope this looks better for you on a recent version!