An open API service indexing awesome lists of open source software.

https://github.com/sysgears/scala-graphql-http-context-handling-example


https://github.com/sysgears/scala-graphql-http-context-handling-example

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Best practices of processing HTTP headers and cookies in GraphQL API in Scala

[![Build Status](https://travis-ci.org/serjorez/graphql-http-context-handling.svg?branch=master)](https://travis-ci.org/serjorez/graphql-http-context-handling.svg?branch=master)

This is an example of a GraphQL server written with Play framework and Sangria that shows best practices of processing HTTP headers and cookies in GraphQL API.

## How to start

Run the application:

`sbt run`

After launch, the application will be accessible on `localhost:9000`

## Sources

https://graphql.org/

https://www.playframework.com/documentation/2.6.x/ScalaHome

https://sangria-graphql.org/learn/

https://facebook.github.io/graphql/#sec-Errors