Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an opium-graphql package #235

Merged
merged 5 commits into from
Dec 8, 2020
Merged

Conversation

tmattio
Copy link
Collaborator

@tmattio tmattio commented Dec 3, 2020

This PR adds an opium-graphql package to easily build GraphQL servers with Opium.

The API provides two functions:

  • make_handler that given a Graphql schema, will build an handler to serve a GraphQL API
  • graphiql_handler that given the endpoint of a GraphQL API will build a handler to serve the GraphiQL tool

TODO

  • API documentation
  • Package documentation
  • We probably don't need to expose Params, execute_query and execute_request

@tmattio tmattio force-pushed the opium-graphql branch 2 times, most recently from c7cf9b4 to 6369a1b Compare December 4, 2020 17:11
@tmattio tmattio merged commit b3289e9 into rgrinberg:master Dec 8, 2020
@tmattio tmattio deleted the opium-graphql branch December 8, 2020 20:39
tmattio added a commit to tmattio/opam-repository that referenced this pull request Dec 9, 2020
CHANGES:

## Added

- New `Auth` module to work with `Authorization` header (rgrinberg/opium#238)
- New `basic_auth` middleware to protect handlers with a `Basic` authentication method (rgrinberg/opium#238)
- New `Response.of_file` API for conveniently creating a response of a file (rgrinberg/opium#244)
- Add a package `opium-graphql` to easily create GraphQL server with Opium (rgrinberg/opium#235)
- Add a function `App.run_multicore` that uses pre-forking and spawns multiple processes that will handle incoming requests (rgrinberg/opium#239)

## Fixed

- Fix reading cookie values when multiple cookies are present in `Cookie` header (rgrinberg/opium#246)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant