词条 | GraphQL |
释义 |
| name = GraphQL | logo = | screenshot = | caption = | author = | developer = Facebook, and community | released = {{Start date|2015}} | latest release version = June 2018[1] | status = Active | repo = {{URL|https://github.com/facebook/graphql}} | programming language = Implementations in Java, JavaScript, Ruby, Scala, others. | operating system = Cross-platform | website = {{URL|https://graphql.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] It provides an efficient, powerful and flexible 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 exactly 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.[6][7][8]. 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).[9] Major GraphQL clients include Apollo Client[10] and Relay.[11] GraphQL servers are available for multiple languages, including Haskell, JavaScript[12], Python,[13] Ruby, Java, C#, Scala, Go, Elixir,[14] Erlang, PHP, R, and Clojure. On 9 February 2018, the GraphQL Schema Definition Language (SDL) was made part of the specification.[15] See also
References1. ^{{cite web | url=https://github.com/graphql/graphql-spec/releases/tag/June2018 | title=GraphQL June 2018 Release Notes | accessdate=26 March 2019}} 2. ^{{cite web|url=http://graphql.org/|title=GraphQL: A query language for APIs.|publisher=}} 3. ^{{cite web|url=https://code.fb.com/core-data/graphql-a-data-query-language/|title=GraphQL: A data query language|publisher=}} 4. ^{{Cite news|url=https://techcrunch.com/2018/11/06/facebooks-graphql-gets-its-own-open-source-foundation/|title=Facebook’s GraphQL gets its own open-source foundation|work=TechCrunch|access-date=2018-11-07|language=en-US}} 5. ^{{Cite news|url=https://www.linuxfoundation.org/press-release/2018/11/intent_to_form_graphql/|title=The Linux Foundation Announces Intent to Form New Foundation to Support GraphQL - The Linux Foundation|date=2018-11-06|work=The Linux Foundation|access-date=2018-11-07|language=en-US}} 6. ^{{Cite news|url=https://philsturgeon.uk/api/2017/01/24/graphql-vs-rest-overview/|title=GraphQL vs REST: Overview|work=Phil Sturgeon|access-date=2018-11-25|language=en-GB}} 7. ^{{Cite news|url=https://honest.engineering/posts/why-use-graphql-good-and-bad-reasons|title=Why use GraphQL, good and bad reasons|date=2018-08-04|work=Honest Engineering|access-date=2018-11-26|language=en-US}} 8. ^{{cite web|url=https://www.howtographql.com/basics/0-introduction/|title=GraphQL Fundamentals|website=Howto GraphQL|accessdate=4 July 2018}} 9. ^{{cite web |title=GraphQL |url=https://facebook.github.io/graphql/June2018/#sec-Language.Operations |website=facebook.github.io |publisher=Facebook |accessdate=4 July 2018}} 10. ^{{cite web|url=https://www.apollographql.com/client|title=Apollo Client: The flexible, production ready GraphQL client for React, and all JavaScript and native apps|publisher=}} 11. ^{{cite web|url=https://facebook.github.io/relay/|title=Relay: A JavaScript framework for building data-driven React applications|publisher=}} 12. ^{{cite web |title=GraphQL js |url=https://github.com/graphql/graphql-js}} 13. ^{{Cite web|url=http://graphene-python.org|title=Graphene|website=graphene-python.org|access-date=2017-06-18}} 14. ^{{cite web |title=Absinthe: The GraphQL toolkit for Elixir |url=http://absinthe-graphql.org/ |accessdate=19 July 2018}} 15. ^{{cite web|url=https://github.com/facebook/graphql/pull/90/|title=GraphQL SDL included in Github repository|publisher=}} External links
2 : Query languages|Data modeling languages |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。