andreas / ocaml-graphql-server

GraphQL servers in OCaml
MIT License
624 stars 60 forks source link

Fix 2 subscriptions bugs #178

Closed anmonteiro closed 4 years ago

anmonteiro commented 4 years ago
  1. Instrospection on __typename
  2. No error was returned if requesting a subscription field that didn't exist
andreas commented 4 years ago

Thanks! It would be nice if resolve_fields could handle subscription objects, too.

anmonteiro commented 4 years ago

Agreed -- I can try to unify these two functions but currently the types don't match so that will probably require some more work.