Conversation
|
Thinking some more about this... Maybe it would be a good idea to expose an API like Servant? We could encode more information with our schema, like what arguments are certain resolvers expecting, etc. This could help with introspection in the future too. |
|
Mapping the GraphQL type system to Haskell's one is something that has come up before. It would really neat, but my position on this to have it working first at the value level, just like the JS reference implementation, before going into type level programming. There might be some way to obtain something similar to what the GraphQL type system expects as type name from a given Haskell value with If it's too much trouble you can remove that test for now. Having to pass the |
This fixes the two test cases related to typename.
Should we make
__typenameand other type-system related information explicit and required forobjectschemas?I also had to change this line, because it is checking for
ValueIntvalue for that argument.Should we add stricter type-checking for our StarWars schema?
Forgive my lack of knowledge, I just started with GraphQL. The Javascript schema-definition API seems very explicit, maybe we should aim for that here as well?