October2015
版本发布时间: 2015-10-03 02:10:11
graphql/graphql-spec最新发布版本:October2021(2021-10-27 08:01:28)
http://facebook.github.io/graphql/October2015/
The GraphQL Specification Working Draft was first published three months ago today and what has happened since has been stunning. GraphQL is now available in many other languages, all built by members of the community.
Part of the reason for publishing a working draft was to get feedback and improve. We've gotten tons of great feedback which has led to many improvements in GraphQL. There are more exciting improvements ahead as research continues in GraphQL query subscription, streaming responses, and more.
As improvements continue, we thought it would be helpful to tag regular "releases" of the GraphQL Spec drafts and publish a changelog to make it easier to follow GraphQL's development. This marks the first in what will become regular releases of the GraphQL Spec.
Copious improvements have been made to clarity. There is still more to be done to make the spec as clear as possible, but a huge thanks to the many awesome contributors who submitted pull requests and issues in an effort to make the GraphQL spec easier to understand.
In addition to clarifying changes, there also have been quite a few grammar and semantic changes as GraphQL continues to evolve.
Grammar and Semantic Changes:
- Inline fragments type conditions are now optional (664fc0e94a8cd8fa20427990190c75ba824cec92)
- Operation names are now optional (02af0fde955b7e7a3887a75fc6740efbfc5be2e1)
- Unicode support has been clarified and restricted (11fba0296096f50e8f914e94559348160516a5ea, af5c288b1f4f833a07c12b08e2047a37c10b3231)
- Input objects now parse redundant fields, but this becomes a validation error (794e69937009663b9c9e7a748e45b2d777f2e6cb)
- Object types implementing interfaces validation became stricter (90784b462cc19a19653a6aa7c83a194161095174)
- Union types now only require one type, loosening validation (972fd5aae01195b018d305c82e43f714f9a41679)
- Added validation rule that arguments to a field must be unique (c5b3b649f9d3ca30e0f7da94b6c16de4cd779915)
- Added validation rule that operation names in a document must be unique (65d46bbc4f7c091a589cf7b3b6247ef944707ce8)
- Added validation rule that fragment names in a document must be unique (994ba71790796d08864ef11706d55db929e258d8)
- Ensure
__type
introspection field always hasname
argument by speccing it to be Non-Null (43c31140550bdbb9c96817099930c29752f07349) - Float literals may omit a decimal part if they include an exponent part (d04ea228ba2bb0d0cb3bcef43f656a135169f97b)
- Enum values cannot be
true
,false
, ornull
(a12f6df77772cc4c86b69e01d9e4ea7addb09dce) - Variable types can be List and Non-Null (5c6e700f630d0741979691ec41f85a53fa68ab8e)
- Fully described Names (5c27ccb8c7e17c9314396b5c2ecf0f7b39ef01e2)
- Directives can now take arguments and introduced
@include
and@skip
directives (9e68777f0ee50809de1f10c55fdd909e618e7fe1)
1、 GraphQL-Spec-October-2015.zip 45.87KB