402 captures
03 Jan 2017 - 06 Mar 2026
Jul AUG Sep
10
2019 2020 2021
success
fail

About this capture

COLLECTED BY

Collection: Save Page Now

TIMESTAMPS

The Wayback Machine - http://web.archive.org/web/20200810213004/https://en.wikipedia.org/wiki/GraphQL
 





GraphQL



From Wikipedia, the free encyclopedia



Jump to navigation  Jump to search  

GraphQL
GraphQL Logo.svg
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

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.

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] GraphQL servers are available for multiple languages, including Haskell,[11] JavaScript,[12] Perl,[13] Python,[14] Ruby, Java, C++[15], C#, Scala, Go, Elixir,[16] Erlang, PHP, R, and Clojure.

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

Example[edit]

POST request:

{
    orders {
        id
        productsList {
            product {
                name
                price
            }
            quantity
        }
        totalAmount
    }
}

Answer:

{
    "data": {
        "orders": [
            {
                "id": 1,
                "productsList": [
                    {
                        "product": {
                            "name": "orange",
                            "price": 1.5
                        },
                        "quantity": 100
                    }
                ],
                "totalAmount": 150
            }
        ]
    }
}

See also[edit]

References[edit]

  1. ^ "GraphQL June 2018 Release Notes". Retrieved 26 March 2019.
  • ^ "GraphQL: A query language for APIs".
  • ^ "GraphQL: A data query language".
  • ^ "Facebook's GraphQL gets its own open-source foundation". TechCrunch. Retrieved 7 November 2018.
  • ^ "The Linux Foundation Announces Intent to Form New Foundation to Support GraphQL - The Linux Foundation". The Linux Foundation. 6 November 2018. Retrieved 7 November 2018.
  • ^ Anthony, Art. "Is GraphQL Moving Toward Ubiquity?". NordicAPIs.
  • ^ "GraphQL vs REST: Overview". Phil Sturgeon. Retrieved 25 November 2018.
  • ^ "Why use GraphQL, good and bad reasons". Honest Engineering. 4 August 2018. Retrieved 26 November 2018.
  • ^ "GraphQL Fundamentals". Howto GraphQL. Retrieved 4 July 2018.
  • ^ "GraphQL". facebook.github.io. Facebook. Archived from the original on 18 July 2018. Retrieved 4 July 2018.
  • ^ "Hasura – Instant Realtime GraphQL on Postgres". Hasura. Retrieved 24 October 2019.
  • ^ "GraphQL js".
  • ^ "GraphQL - Perl implementation of GraphQL".
  • ^ "Graphene". graphene-python.org. Retrieved 18 June 2017.
  • ^ graphql/libgraphqlparser, GraphQL, 27 May 2020, retrieved 30 May 2020
  • ^ "Absinthe: The GraphQL toolkit for Elixir". Retrieved 19 July 2018.
  • ^ "GraphQL SDL included in Github repository".
  • External links[edit]


    Retrieved from "https://en.wikipedia.org/w/index.php?title=GraphQL&oldid=960361175"

    Categories: 
    Query languages
    Data modeling languages
    Software stubs
    Hidden categories: 
    Articles with short description
    Short description matches Wikidata
    Use dmy dates from October 2019
    Pages using deprecated image syntax
    All stub articles
     





    Navigation menu


    Personal tools  



    Not logged in
    Talk
    Contributions
    Create account
    Log in
     

    Namespaces  



    Article
    Talk
     

    Variants  





    Views  



    Read
    Edit
    View history
     

    More  





     






    Navigation  



    Main page
    Contents
    Current events
    Random article
    About Wikipedia
    Contact us
    Donate
    Wikipedia store
     

    Contribute  



    Help
    Community portal
    Recent changes
    Upload file
     

    Tools  



    What links here
    Related changes
    Upload file
    Special pages
    Permanent link
    Page information
    Cite this page
    Wikidata item
     

    Print/export  



    Download as PDF
    Printable version
     

    Languages  



    العربية
    Bân-lâm-gú
    Deutsch
    Eesti
    Español
    فارسی
    Français

    ि
    Nederlands

    Português
    Українська


    Edit links
     



    This page was last edited on 2 June 2020, at 14:47 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.
     


    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Developers

    Statistics

    Cookie statement

    Mobile view
     


    Wikimedia Foundation
    Powered by MediaWiki