GraphQL Leaves Tech Preview
Written by Kay Ewbank   
Monday, 19 September 2016

Facebook has removed the 'technical preview' tag from GraphQL and relaunched graphql.org.

In reality, GraphQL has been ready for production use the whole time, and has been used by Facebook to deliver data to its mobile news feed since 2012. However, it was only made open source last year, and Facebook's caution about calling anything 'finished' resulted in the technical preview tag. 

graphqllogo

GraphQL is a query language for APIs. Its purpose is to provide a complete description of the data in your API, which can then be used by clients to ask for specific data from the API. A GraphQL query is a string that is sent to a server to be interpreted and fulfilled, which then returns JSON back to the client. The developers differentiate the way GraphQL works as handling data not in terms of resource URLs, secondary keys, or join tables; rather as a graph of objects and the models ultimately used in apps like NSObjects or JSON.

graphql

 

GraphQL follows relationships between objects, unlike SQL where you'd need to define a potentially complex join, or RESTful services which may require multiple round-trips to retrieve a complex data set.

 

 

  

The reason for the delay in taking GraphQL off the preview list was Facebook developers making improvements to GraphQL, drafting a specification, and producing a reference implementation to help developers try it out. New versions of some of the tools within GraphQL were also developed. As these elements weren't fully proven, the whole thing was released as technical preview.
 
In the intervening year, the technology has been implemented in a range of languages including Java and JavaScript, Ruby, Python, Scala, Go, Elixir and C#.  As we reported today, Github has announced the Github GraphQL API,the first major public API to use GraphQL.
 
Facebook has now decided that GraphQL is ready for use by everyone, so it is now being labeled production ready. The API's website, graphql.org, has also been revamped with clearer and more relevant content, and the Facebook developers say it's ready for use and
"can greatly simplify data needs for both client product developers and server-side engineers, regardless of what languages you're using in either environment."
 

graphqllogo

Meanwhile GitHub, which has adopted GraphQL as a replacement for its own REST API, has provided Early Access to its GraphQL API, claiming on the GitHub Engineering Blog:

GraphQL represents a massive leap forward for API development. Type safety, introspection, generated documentation, and predictable responses benefit both the maintainers and consumers of our platform.

 

More Information

GraphQL.org

 

Related Articles

Facebook's Relay For React Open Sourced

GitHub Platform and Community Improvements

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter,subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin

 

Banner


pg_parquet - Postgres To Parquet Interoperability
28/11/2024

pg_parquet is a new extension by Crunchy Data that allows a PostgreSQL instance to work with Parquet files. With pg_duckdb, pg_analytics and pg_mooncake all of which can access Parquet files, is  [ ... ]



Trees And Heaps For Xmas - A Programmer At Xmas
24/12/2024

Christmas is a time for tradition. Finding the Christmas lights in the dark recesses of a cupboard and hanging much-loved baubles on the Christmas Tree. Running this xkcd cartoon has become a part of& [ ... ]


More News

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Monday, 19 September 2016 )