Tag: graphql

RSS Feed

Optional Attribute Access in Reason

November
13,
2018
·
graphql,
ocaml,
reason

One thing that you’ll run into when interfacing with complex javascript objects in Reason, is that dealing with optional objects can be a huge pain. The most common place to run into this is when using the excellent graphql-ppx syntax plugin (often together with reason-apollo), because the result of a graphql query is a large complex javascript object, with many parts of it that are optional.

2 minute read