Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Conversation

@aweiker
Copy link
Member

@aweiker aweiker commented Mar 11, 2016

  • Version that can only execute queries
  • Separate version that can load GraphiQL, fixes Extract GraphiQL from core Endpoint plug #16
  • Allow queries to be retrieved from the server side either through a function or from a passed in option
  • Upgrade to GraphiQL 0.6.1

@aweiker aweiker changed the title [WIP] Separating out the main plug to have two versions. Separating out the main plug to have two versions. Mar 13, 2016
This provides the abiilty of a set of query operations to be defined alongsie the schema.
s -> s
end

root_value = Keyword.get(opts, :root_value, %{})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed I think that the core params need to be extracted in the core Endpoint plug and this decorates and adds the extra behaviour -graphiql in this case

@joshprice
Copy link
Member

Looks good, nice work!

As discussed, we need to name the modules here more clearly:

  • Plug: this is the all singing, all dancing plug which does everything out of the box
  • Endpoint: this is the core plug that should only deal with executing the query
  • Parameters: seems like a reasonable name, maybe use singular?
  • FunctionalValue: does root_value processing? name and role need to be clearer

aweiker added 5 commits March 14, 2016 16:05
* Improving validation of functions
* Unify query tests into a single file
* Add init tests for each plug
@joshprice joshprice changed the title Separating out the main plug to have two versions. Extract GraphiQL from core Endpoint plug Mar 16, 2016
@joshprice
Copy link
Member

Awesome work, thanks! 🚀

joshprice pushed a commit that referenced this pull request Mar 16, 2016
Extract GraphiQL from core Endpoint plug
@joshprice joshprice merged commit d5fd71e into graphql-elixir:master Mar 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extract GraphiQL from core Endpoint plug

2 participants