霉菌是什么引起的| 基诺浦鞋属于什么档次| giada是什么牌子| 酒后头疼什么原因| 做奶茶用什么茶叶| 冗长是什么意思| 全身而退是什么意思| 4.22是什么星座| 泡蛇酒用什么药材最好| acl是什么意思| 拉痢疾吃什么药| 9点半是什么时辰| 米糊是什么| 吃狗肉有什么危害| 血脂高吃什么水果最好| 检查胸部挂什么科| 走婚是什么意思| 后背疼痛什么原因| 爱出汗吃什么药| 肚脐眼叫什么穴位| 微波炉什么牌子好| 小孩容易出汗是什么原因| 内痔用什么药| 手上螺纹多少代表什么| cdf是什么意思| 特别能睡觉是什么原因引起的| 什么是排卵期怎么计算| hpv是什么病毒| dpd是什么意思| 健将是什么意思| 亡羊补牢说明什么道理| 海带和什么菜搭配好吃| 尿道炎症状吃什么药| 红色连衣裙配什么鞋子好看| 黄斑前膜是什么病| 车震是什么意思啊| 女属羊和什么属相最配| 内疚是什么意思| 足字旁的字跟什么有关| 摩羯座的幸运色是什么| 覆盆子有什么功效| 亦字五行属什么| 抑郁是什么意思| 清鼻涕是什么感冒| 晚上3点是什么时辰| 上海特产是什么| 谷草谷丙偏低代表什么| 窦性心律不齐有什么危害| aoerbo是什么牌子的手表| adh是什么激素| h型高血压是什么意思| 路怒症是什么| 为什么有眼袋是什么原因引起的| hpv阳性是什么病| 男人遗精是什么原因造成的| 火车动车高铁有什么区别| 乳房疼吃什么药| 87年兔是什么命| 前列腺按摩什么感觉| 疙瘩疤痕有什么方法可以去除| 改名字需要什么手续| 1912年属什么生肖| 妯娌什么意思| 什么牙什么嘴| 诟病是什么意思| 量贩什么意思| 什么就像什么造句| 什么是宇宙| 黄体破裂是什么症状| 刚开始怀孕会有什么症状| 萝卜干炒什么好吃| 西瓜什么时候种| 属鼠和什么属相最配| 猪朋狗友是什么意思| 飞蚊症吃什么药| 咳嗽发烧吃什么药| 甲胎蛋白是检查什么的| 重症肌无力是什么原因引起的| 痰浊是什么意思| 司令是什么级别| 正局级是什么级别| 什么是聚酯纤维面料| 一号来的月经排卵期是什么时候| 段子是什么意思| 种草是什么意思| 小仙女是什么意思| 拿什么证明分居两年| 头疼头胀是什么原因| 薏米有什么作用| 肝气不舒有什么症状| 姑奶奶的老公叫什么| 难过美人关是什么生肖| 风对什么| 扁桃体化脓是什么原因引起的| 绿卡需要什么条件| 血珀五行属什么| 非布司他片是什么药| 心口疼是什么原因女性| 为什么总是犯困想睡觉| 尾巴骨疼挂什么科| 右侧卵巢内囊性结构什么意思| 维生素b6主治什么| 减肥期间可以喝什么饮料| 什么食物含硒| 女人练瑜伽有什么好处| 一般什么原因做宫腔镜| 各就各位是什么意思| 妇科腺肌症是什么病| 肚子饿了为什么会叫| 腐女是什么| 宋朝后面是什么朝代| 原味是什么意思| 嗓子痛吃什么消炎药| 大校相当于政府什么官| 空调出风小没劲什么原因| 迂回战术什么意思| 备孕要注意什么| 甘油三酯偏高说明什么| 两败俱伤是什么意思| 八月八日是什么星座| 发现新大陆是什么意思| 四川耙耳朵是什么意思| 肌醇是什么东西| mic是什么| 区长什么级别| 中国中铁是做什么的| 叶酸什么时间吃最好| 维生素b族为什么不能晚上吃| 县人民医院是什么级别| 血常规wbc是什么意思| 天蓝色配什么颜色| 爱出汗的人是什么原因| 无脑儿是什么意思| 什么是切线| 什么然起什么| 卿字五行属什么| Continental什么牌子| 嗓子发炎吃什么水果| 抬举征阳性是什么意思| 手抖是因为什么| 电子烟是什么| 立冬北方吃什么| 食人鱼长什么样子| 柔情似水是什么意思| 滋养是什么意思| 什么方法避孕最安全有效| 没有美瞳护理液用什么代替| 知是什么意思| michaelkors是什么牌子| 复印病历需要什么证件| 化疗能吃什么水果| 什么产品祛斑效果最好| 独生子女证有什么用| 经警是做什么的| 喉咙有异物感挂什么科| 柳树像什么| gn什么意思| 胎儿颈部可见u型压迹什么意思| 农历五月二十四是什么日子| rf是什么| 大腿前侧是什么经络| 95年属什么生肖| 心计是什么意思| 政治家是什么意思| 梦到女儿丢了什么预兆| f代表什么| 壁立千仞无欲则刚是什么意思| 淀粉样变是什么病| 小肠火吃什么药效果快| waist是什么意思| 12月13日是什么日子| 骨钙素低是什么原因| 破釜沉舟的釜是什么意思| 1953年是什么生肖| 咽峡炎是什么病| m是什么| 尽善尽美是什么生肖| 月经不来什么原因| 丝瓜有什么营养| max什么意思| 深千尺是什么意思| 肺部有问题一般会出现什么症状| MP是什么| 指甲有白点是缺什么| 更年期失眠吃什么药| 覆盖是什么意思| 吃什么补气虚最快最好| 白头发是缺什么维生素| 眼睛大小不一样是什么原因| 冷面是用什么面做的| 汗毛旺盛是什么原因| 什么魏什么赵| 支数是什么意思| 铁杵是什么| 花开半夏什么意思| 机能鞋是什么意思| 咽喉炎是什么原因引起的| 六月生日是什么星座| 梦见别人结婚是什么征兆| 急性盆腔炎有什么症状表现呢| 后位子宫什么意思| 汝等是什么意思| 荷叶配什么减肥效果好| 势均力敌是什么意思| approval是什么意思| 南辕北辙什么意思| 牙痛吃什么药最快见效| 突然好想你你会在哪里是什么歌| 什么情况下要打破伤风针| q热是什么病| 嗓子中间的那块小肉叫什么| 招商是什么工作| 开是什么生肖| 2016年属猴是什么命| yxh是什么意思| 山鬼是什么| 初检检查什么| 什么是气血| 芙蕖是什么意思| 一什么人家| 除湿气用什么药| 孕妇吃什么补血| 差是什么意思| 门当户对指的是什么| 吃什么降血脂最好| 胃不舒服恶心想吐吃什么药| 痛点是什么意思| 什么是三宝| 睡不着吃什么药最有效| 十周年是什么婚| 龙珠是什么| 肺寒吃什么药| 水什么| 苦海翻起爱恨是什么歌| 1992年五行属什么| 小孩便秘吃什么通便快| 三级手术是什么意思| 中元节与什么生肖有关| 柠字五行属什么| 信天翁是什么鸟| 定增股票是什么意思| 阿托品属于什么类药物| 明知故犯的故是什么意思| 为什么拉屎会有血| 什么时候入秋| 慢性肾炎吃什么药| 咖喱饭需要什么材料| 六月十一号是什么星座| 怀孕吃什么水果好| 六月一号什么星座| stories是什么意思| 尧五行属什么| 侯字五行属什么| 湿疹是长什么样的| 性取向是什么意思| 什么案件才会出动便衣| 隔离霜是干什么用的| 什么是心律失常| 湖南有什么景点| 夏天适合吃什么菜| 血糖降不下来是什么原因导致| 痔疮是什么样子的图片大全| 荷花代表什么| 心脏肿大是什么原因| 百度Jump to content

转肽酶高是什么原因

From Wikipedia, the free encyclopedia
GraphQL
Original author(s)Meta Platforms
Developer(s)The GraphQL Foundation
Initial releaseSeptember 14, 2015 (2025-08-05)
Stable release
October 2021 (2021-10)[1]
Repositorygithub.com/graphql/graphql-spec
Written inImplementations in Java, JavaScript, Ruby, Scala, others.
Websitegraphql.org
百度 全省平均降水量毫米,较常年少2%,前期降雪量偏少,2017年12月1日~2018年2月25日全省平均降水量为毫米,较常年少32%,居2000年以来同期少雨雪的第3位。

GraphQL is a data query and manipulation language that allows specifying what data is to be retrieved ("declarative data fetching") or modified. A GraphQL server can process a client query using data from separate sources and present the results in a unified graph.[2] The language is not tied to any specific database or storage engine. There are several open-source runtime engines for GraphQL.

History

[edit]

Facebook started GraphQL development in 2012 and released a draft specification and reference implementation as open source in 2015.[3] In 2018, GraphQL was moved to the newly established GraphQL Foundation, hosted by the non-profit Linux Foundation.[4][5]

On February 9, 2018, the GraphQL Schema Definition Language became part of the specification.[6]

Many popular public APIs adopted GraphQL as the default way to access them. These include public APIs of Facebook, GitHub, Yelp, Shopify, Google Directions API and many others.[7][8]

Design

[edit]

GraphQL supports reading, writing (mutating), and subscribing to changes to data (realtime updates – commonly implemented using WebSockets).[9] A GraphQL service is created by defining types with fields, then providing functions to resolve the data for each field. The types and fields make up what is known as the schema definition. The functions that retrieve and map the data are called resolvers.[10]

After being validated against the schema, a GraphQL query is executed by the server. The server returns a result that mirrors the shape of the original query, typically as JSON.[11]

Type system

[edit]
Schema of swapi-graphql rendered as a graph by GraphQL Voyager

With GraphQL, you model your business domain as a graph by defining a schema; within your schema, you define different types of nodes and how they connect/relate to one another.[12]

The GraphQL type system describes what data can be queried from the API. The collection of those capabilities is referred to as the service’s schema and clients can use that schema to send queries to the API that return predictable results.[13]

The root type of a GraphQL schema, Query by default, contains all of the fields that can be queried. Other types define the objects and fields that the GraphQL server can return. There are several base types, called scalars, to represent things like strings, numbers, and IDs.

Fields are defined as nullable by default, and a trailing exclamation mark can be used to make a field non-nullable (required). A field can be defined as a list by wrapping the field's type in square brackets (for example, authors: [String]).[14]

type Query {
  currentUser: User
}

type User {
  id: ID!
  name: String!
}

Queries

[edit]

A GraphQL query defines the exact shape of the data needed by the client.

query CurrentUser {
  currentUser {
    name
    age
  }
}

Once validated and executed by the GraphQL server, the data is returned in the same shape.

{
  "currentUser": {
    "name": "John Doe",
    "age": 23
  }
}

Mutations

[edit]

A GraphQL mutation allows for data to be created, updated, or deleted. Mutations generally contain variables, which allow data to be passed into the server from the client. The mutation also defines the shape of the data that will be returned to the client after the operation is complete.

mutation CreateUser($name: String!, $age: Int!) {
  createUser(userName: $name, age: $age) {
    name
    age
  }
}

The variables are passed as an object with fields that match the variable names in the mutation.

{
  "name": "Han Solo",
  "age": 42
}

Once the operation is complete, the GraphQL server will return data matching the shape defined by the mutation.

{
  "data": {
    "createUser": {
      "name": "Han Solo",
      "age": 42
    }
  }
}

Subscriptions

[edit]

GraphQL also supports live updates sent from the server to client in an operation called a subscription. Again, the client defines the shape of the data that it needs whenever an update is made.

subscription {
  newPerson {
    name
    age
  }
}

When a mutation is made through the GraphQL server that updates the associated field, data is sent to all subscribed clients in the format setup through the subscription.

{
  "newPerson": {
    "name": "Jane",
    "age": 23
  }
}

Versioning

[edit]

While there’s nothing that prevents a GraphQL service from being versioned just like any other API, GraphQL takes a strong opinion on avoiding versioning by providing the tools for the continuous evolution of a GraphQL schema.[15]

The @deprecated built-in directive is used within the type system definition language to indicate deprecated portions of a GraphQL service’s schema, such as deprecated fields on a type or deprecated enum values.[14]

GraphQL only returns the data that’s explicitly requested, so new capabilities can be added via new types or new fields on existing types without creating a breaking change. This has led to a common practice of always avoiding breaking changes and serving a versionless API.[15]

Comparison to other query languages

[edit]

GraphQL does not provide a full-fledged graph query language such as SPARQL, or even in dialects of SQL that support transitive closure. For example, a GraphQL interface that reports the parents of an individual cannot return, in a single query, the set of all their ancestors.

Testing

[edit]

GraphQL APIs can be tested manually or with automated tools issuing GraphQL requests and verifying the correctness of the results. Automatic test generation is also possible.[16] New requests may be produced through search-based techniques due to a typed schema and introspection capabilities.[17]

Some of the software tools used for testing GraphQL implementations include Postman, GraphiQL, Apollo Studio, GraphQL Hive, GraphQL Editor, and Step CI.[18]

See also

[edit]

References

[edit]
  1. ^ "GraphQL October 2021 Release Notes". GitHub.
  2. ^ "Learn GraphQL Fundamentals with Fullstack Tutorial". www.howtographql.com. Retrieved 25 April 2023.
  3. ^ "GraphQL: A data query language". 14 September 2015.
  4. ^ "Facebook's GraphQL gets its own open-source foundation". TechCrunch. Retrieved 7 November 2018.
  5. ^ "The Linux Foundation Announces Intent to Form New Foundation to Support GraphQL". The Linux Foundation. 6 November 2018. Retrieved 17 March 2023.
  6. ^ "GraphQL SDL included in Github repository". GitHub.
  7. ^ "GraphQL Landscape". landscape.graphql.org. 5 July 2025.
  8. ^ graphql-kit/graphql-apis, graphql-kit, 31 May 2025, retrieved 5 June 2025
  9. ^ "GraphQL". facebook.github.io. Facebook. Archived from the original on 18 July 2018. Retrieved 4 July 2018.
  10. ^ "Introduction to GraphQL". graphql.org. Retrieved 25 April 2023.
  11. ^ "Execution". graphql.org. Retrieved 25 April 2023.
  12. ^ "Thinking in Graphs | GraphQL". graphql.org. Retrieved 3 June 2025.
  13. ^ "Schemas and Types | GraphQL". graphql.org. Retrieved 3 June 2025.
  14. ^ a b "GraphQL". spec.graphql.org. Retrieved 25 April 2023.
  15. ^ a b "Schema Design | GraphQL". graphql.org. Retrieved 3 June 2025.
  16. ^ Vargas, D. M.; Blanco, A. F.; Vidaurre, A. C.; Alcocer, J. P. S.; Torres, M. M.; Bergel, A.; Ducasse, S. (2018). "Deviation Testing: A Test Case Generation Technique for GraphQL APIs" (PDF). 11th International Workshop on Smalltalk Technologies (IWST): 1–9.
  17. ^ Karlsson, Stefan; Causevic, Adnan; Sundmark, Daniel (May 2021). "Automatic Property-based Testing of GraphQL APIs". 2021 IEEE/ACM International Conference on Automation of Software Test (AST). Madrid, Spain: IEEE. pp. 1–10. arXiv:2012.07380. doi:10.1109/AST52587.2021.00009. ISBN 978-1-6654-3567-3. S2CID 229156477.
  18. ^
    "Hive Laboratory". Hive Documentation. Retrieved 26 November 2024.
[edit]
lga肾病是什么意思 肾炎康复片主要是治疗什么 菟丝子是什么 学护理需要什么条件 最高检检察长什么级别
肚子痛拉稀吃什么药 多汗症是什么原因 什么颜色的猫最旺财 备孕需要做什么检查 包皮是什么意思
脑供血不足是什么症状 睾丸扭转有什么症状 秦始皇的原名叫什么 90年出生属什么生肖 马超是什么生肖
食物中毒用什么药 什么人不能吃猪肝 文爱是什么意思 1935年属什么生肖属相 女孩月经不规律是什么原因
10月14日什么星座hcv7jop9ns2r.cn 海豹是什么动物luyiluode.com 五十而知天命是什么意思hcv9jop6ns6r.cn 吃晕车药有什么副作用hcv9jop4ns4r.cn 看见喜鹊有什么预兆wuhaiwuya.com
拆线去医院挂什么科hcv8jop2ns0r.cn 59岁属什么hcv9jop4ns1r.cn 腰痛是什么原因引起的hcv9jop5ns1r.cn 微创手术是什么hcv8jop7ns3r.cn 晚上看见黄鼠狼有什么预兆hcv7jop9ns7r.cn
涩是什么意思hcv9jop6ns9r.cn 飞蚊症是什么原因造成的能治愈吗hcv9jop0ns0r.cn 女性什么时候最容易怀孕zhiyanzhang.com clot什么牌子hcv8jop8ns8r.cn 震仰盂什么意思hcv9jop2ns9r.cn
学海无涯苦作舟的上一句是什么hkuteam.com 新疆以前叫什么hcv8jop8ns9r.cn 思诺思是什么药beikeqingting.com 子宫平位是什么意思helloaicloud.com 四个雷念什么hcv9jop0ns1r.cn
百度