# Exploring Reason and GraphQL

DevFeed: [Exploring Reason and GraphQL](<https://devfeed.tech/articles/exploring-reason-and-graphql-23295.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/exploring-reason-and-graphql-ff877df60d2a>)

Author: James Baxley III

Published: 2018-01-04T22:07:36Z

Content type: article

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [Reason](<https://devfeed.tech/topics/reason.md>), [OCaml](<https://devfeed.tech/topics/ocaml.md>), [GraphQL](<https://devfeed.tech/topics/graphql.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [ocaml](<https://devfeed.tech/tags/ocaml.md>), [programming](<https://devfeed.tech/tags/programming.md>), [programming-language](<https://devfeed.tech/tags/programming-language.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

## AI overview

The article describes an exploration of ReasonML, a programming language built on OCaml and compiled to JavaScript. It applies Reason to rebuilding a GraphQL endpoint and discusses modules, type definitions, and immutable fields, with TypeScript as a comparison point.

## Source excerpt

Over the holiday break, while the in-laws slept soundly and not a child was making a peep, I had the chance to play around with ReasonML. Reason is a new programming language built on top of OCaml and designed to be compiled into JavaScript. After spending a couple of years with TypeScript over the development of Apollo, I thought it would be fun to try another compile to JavaScript language. Why Reason?