graphql-api icon indicating copy to clipboard operation
graphql-api copied to clipboard

Write type-safe GraphQL services in Haskell

Results 64 graphql-api issues
Sort by recently updated
recently updated
newest added

I tried modelling a tree with recursive entries, but if try to model this: ```haskell type TreeEntryQ = Union "TreeEntryQ" '[FileQ, RecTreeQ, SymlinkQ] ``` I get: ``` • Invalid TypeIndex....

bug
api

I want to do something like this: ```haskell newtype Thingy = Thingy Text deriving (Eq, Ord, Show) instance ToValue Thingy where toValue (Thingy x) = toValue x type QueryRoot =...

enhancement

The [tests](https://github.com/jml/graphql-api/blob/2b64b65175a315cc8a5247aa519793f40d8b6058/tests/EndToEndTests.hs#L240-L290) use a variable map, but the variable is not passed as a parameter to a handler. Instead, [the handler already has the variable hard coded](https://github.com/jml/graphql-api/blob/2b64b65175a315cc8a5247aa519793f40d8b6058/tests/EndToEndTests.hs#L241). How can a...

docs

There is no example for a field with an interface type, like ```graphql type Human implements Sentient { name: String! favouritePet: Pet } ``` How must a handler for this...

docs

There is no example of Enum serialisation/deserialisation. For instance, if I wanted to have the dog commands to be in all caps in the JSON output (and query input), what...

docs

This probably wants to be added to https://github.com/chentsulin/awesome-graphql#lib-haskell

help wanted
docs

http://graphql.org/code/ has an "Edit this page" button. We should submit a PR to list graphql-api as a Haskell implementation. The listing should ideally include some example code.

help wanted
docs

It would be nice to just embed a GraphQL schema in Haskell code and then have a computer do most of the work to translating it to Haskell types. I...

enhancement

https://github.com/facebook/graphql/releases/tag/October2016 lists a bunch of breaks & clarifications. We were in the middle of implementing graphql-api when that was released, so it's likely that our implementation gets some of those...

spec