GraphQL

GraphQL is an open-source data query and manipulation language for APIs, and a runtime for fulfilling queries with existing data.[2] GraphQL was developed internally by Facebook in 2012 before being publicly released in 2015.[3] On 7 November 2018, the GraphQL project was moved from Facebook to the newly-established GraphQL Foundation, hosted by the non-profit Linux Foundation.[4][5] Since 2012, GraphQL's rise has followed the adoption timeline as set out by Lee Byron, GraphQL's creator, with accuracy.[6] Byron's goal is to make GraphQL omnipresent across web platforms.

GraphQL
Developer(s)Facebook, and community
Initial release2015 (2015)
Stable release
June 2018[1]
Repositorygithub.com/graphql/graphql-spec
Written inImplementations in Java, JavaScript, Ruby, Scala, others.
Operating systemCross-platform
Websitegraphql.org

It provides an approach to developing web APIs, and has been compared and contrasted with REST and other web service architectures. It allows clients to define the structure of the data required, and the same structure of the data is returned from the server, therefore preventing excessively large amounts of data from being returned, but this has implications for how effective web caching of query results can be. The flexibility and richness of the query language also adds complexity that may not be worthwhile for simple APIs.[7][8][9] It consists of a type system, query language and execution semantics, static validation, and type introspection.

GraphQL supports reading, writing (mutating), and subscribing to changes to data (realtime updates - most commonly implemented using WebHooks).[10]

Major GraphQL clients include Apollo Client[11] and Relay.[12] GraphQL servers are available for multiple languages, including Haskell[13], JavaScript,[14] Perl,[15] Python,[16] Ruby, Java, C#, Scala, Go, Elixir,[17] Erlang, PHP, R, and Clojure.

On 9 February 2018, the GraphQL Schema Definition Language (SDL) became part of the specification.[18]

See also

References


This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.