Skip to content

Commit 67b624a

Browse files
authored
Format documents with 'prettier' (#174)
1 parent 09471d5 commit 67b624a

8 files changed

+384
-198
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,15 @@ typings/
5959

6060
# Visual Studio project specific, machine local files
6161
.vs/
62+
63+
# Standard ignores from wg-template
64+
*.swp
65+
*~
66+
.*.haste_cache.*
67+
.DS_Store
68+
npm-debug.log
69+
/build
70+
/public
71+
/gh-pages
72+
yarn.lock
73+
package-lock.json

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# PRs to Working Group documents should be minimal effort - no need to force formatting compliance
2+
/working-group/
3+
# To maintain the expressiveness of the original poster, we do not auto-format RFCs
4+
/rfcs/

INTERESTED_DEVELOPERS.md

Lines changed: 74 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,88 @@
11
# Interested Developers
22

3-
## Want to get involved?
3+
## Want to get involved?
44

5-
If you're interested in this spec and helping contribute to it, you can get involved with the following steps:
5+
If you're interested in this spec and helping contribute to it, you can get
6+
involved with the following steps:
67

7-
1. Read the [Roadmap](ROADMAP.md) which outlines the planned development of this spec.
8-
2. See [Agendas](working-group/agendas) for upcoming meetings of the GraphQL-over-HTTP working group. Given our world-wide span over many timezones, we are doing an experiment of attempting to advance the spec with fewer meetings and more asynchronous communication. During this experiment, please reach out over slack and github.
8+
1. Read the [Roadmap](ROADMAP.md) which outlines the planned development of this
9+
spec.
10+
2. See [Agendas](working-group/agendas) for upcoming meetings of the
11+
GraphQL-over-HTTP working group. Given our world-wide span over many
12+
timezones, we are doing an experiment of attempting to advance the spec with
13+
fewer meetings and more asynchronous communication. During this experiment,
14+
please reach out over slack and github.
915
3. Add yourself to `List of Developers` below.
10-
4. Find our working group on the [GraphQL Foundation slack community](https://slack.graphql.org) in the [graphql-over-http channel](https://graphql.slack.com/archives/CRTKLUZRT).
16+
4. Find our working group on the
17+
[GraphQL Foundation slack community](https://slack.graphql.org) in the
18+
[graphql-over-http channel](https://graphql.slack.com/archives/CRTKLUZRT).
1119

1220
## List of Developers
1321

14-
This list helps us keep track people that are interested in taking decisions of the specification of GraphQL over HTTP.
22+
This list helps us keep track people that are interested in taking decisions of
23+
the specification of GraphQL over HTTP.
1524

16-
If you want to be listed here, open a PR with your information, just order yourself by username.
25+
If you want to be listed here, open a PR with your information, just order
26+
yourself by username.
1727

28+
- @abernix
29+
- Company/Project/Repo: https://github.com/apollographql/apollo-server,
30+
https://github.com/apollographql/apollo-client
31+
- Reason: Interested in client/server spec
32+
- @balshor
33+
- Company/Project/Repo: https://github.com/linkedin
34+
- Reason: Interested in a common HTTP spec
35+
- @benjie
36+
- Company/Project/Repo: https://github.com/graphql/graphiql,
37+
https://github.com/graphile/postgraphile
38+
- Reason: Interested in a common HTTP spec
39+
- @deinok
40+
- Company/Project/Repo: https://github.com/graphql-dotnet/graphql-client
41+
- Reason: Interested in client/server on C# stack
42+
- @enisdenjo
43+
- Company/Project/Repo: https://github.com/domonda,
44+
https://github.com/bhidapa, https://github.com/enisdenjo/graphql-ws
45+
- Reason: Interested in a common subscriptions spec
46+
- @erikwittern
47+
- Company/Project/Repo: https://github.com/graphql/libgraphqlparser,
48+
https://github.com/IBM/openapi-to-graphql
49+
- Reason: Interested in client/server in JavaScript/C++
50+
- @ghmcadams
51+
- Company/Project/Repo: https://github.com/ghmcadams
52+
- Reason: Interested in a common HTTP spec
53+
- @jaydenseric
54+
- Company/Project/Repo:
55+
https://github.com/jaydenseric/graphql-multipart-request-spec
56+
- Reason: Interested in multipart request spec
57+
- @maraisr
58+
- Company/Project/Repo: https://github.com/maraisr/meros
59+
- Reason: Interested in common incremental delivery spec
60+
- @michaelstaib
61+
- Company/Project/Repo: https://github.com/ChilliCream/hotchocolate
62+
- Reason: Interested in client/server in JavaScript/C++/C#
63+
- @mike-marcacci
64+
- Company/Project/Repo: https://github.com/boltline
65+
- Reason: Interested in client/server spec
66+
- @mmatsa
67+
- Company/Project/Repo: https://github.com/graphql/libgraphqlparser
68+
- Reason: Interested in client/server in C++
69+
- @sjparsons
70+
- Company/Project/Repo: PayPal & Braintree https://github.com/sjparsons
71+
- Reason: Interested in common spec
72+
- @spawnia
73+
- Company/Project/Repo: https://github.com/nuwave/lighthouse
74+
- Reason: Interested in client/server in PHP
75+
- @sungam3r
76+
- Company/Project/Repo: https://github.com/graphql-dotnet/server
77+
- Reason: Interested in client/server spec
78+
- @glennblock
79+
- Company/Project/Report: https://github.com/microsoft
80+
- Reason: Interested in a common HTTP spec, and in adoption of emerging HTTP
81+
standards like HTTP SEARCH
82+
- @hemanth
83+
- Company/Project/Repo: PayPal https://github.com/hemanth
84+
- Reason: Interested in a common HTTP spec and common subscriptions spec.
1885

19-
* @abernix
20-
* Company/Project/Repo: https://github.com/apollographql/apollo-server, https://github.com/apollographql/apollo-client
21-
* Reason: Interested in client/server spec
22-
* @balshor
23-
* Company/Project/Repo: https://github.com/linkedin
24-
* Reason: Interested in a common HTTP spec
25-
* @benjie
26-
* Company/Project/Repo: https://github.com/graphql/graphiql, https://github.com/graphile/postgraphile
27-
* Reason: Interested in a common HTTP spec
28-
* @deinok
29-
* Company/Project/Repo: https://github.com/graphql-dotnet/graphql-client
30-
* Reason: Interested in client/server on C# stack
31-
* @enisdenjo
32-
* Company/Project/Repo: https://github.com/domonda, https://github.com/bhidapa, https://github.com/enisdenjo/graphql-ws
33-
* Reason: Interested in a common subscriptions spec
34-
* @erikwittern
35-
* Company/Project/Repo: https://github.com/graphql/libgraphqlparser, https://github.com/IBM/openapi-to-graphql
36-
* Reason: Interested in client/server in JavaScript/C++
37-
* @ghmcadams
38-
* Company/Project/Repo: https://github.com/ghmcadams
39-
* Reason: Interested in a common HTTP spec
40-
* @jaydenseric
41-
* Company/Project/Repo: https://github.com/jaydenseric/graphql-multipart-request-spec
42-
* Reason: Interested in multipart request spec
43-
* @maraisr
44-
* Company/Project/Repo: https://github.com/maraisr/meros
45-
* Reason: Interested in common incremental delivery spec
46-
* @michaelstaib
47-
* Company/Project/Repo: https://github.com/ChilliCream/hotchocolate
48-
* Reason: Interested in client/server in JavaScript/C++/C#
49-
* @mike-marcacci
50-
* Company/Project/Repo: https://github.com/boltline
51-
* Reason: Interested in client/server spec
52-
* @mmatsa
53-
* Company/Project/Repo: https://github.com/graphql/libgraphqlparser
54-
* Reason: Interested in client/server in C++
55-
* @sjparsons
56-
* Company/Project/Repo: PayPal & Braintree https://github.com/sjparsons
57-
* Reason: Interested in common spec
58-
* @spawnia
59-
* Company/Project/Repo: https://github.com/nuwave/lighthouse
60-
* Reason: Interested in client/server in PHP
61-
* @sungam3r
62-
* Company/Project/Repo: https://github.com/graphql-dotnet/server
63-
* Reason: Interested in client/server spec
64-
* @glennblock
65-
* Company/Project/Report: https://github.com/microsoft
66-
* Reason: Interested in a common HTTP spec, and in adoption of emerging HTTP standards like HTTP SEARCH
67-
* @hemanth
68-
* Company/Project/Repo: PayPal https://github.com/hemanth
69-
* Reason: Interested in a common HTTP spec and common subscriptions spec.
70-
7186
### CC Helper
7287

7388
`@abernix @balshor @benjie @deinok @erikwittern @jaydenseric @michaelstaib @mike-marcacci @mmatsa @sjparsons @spawnia @sungam3r @enisdenjo`

README.md

Lines changed: 48 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,72 @@
11
> **Stage 0: Preliminary**
2-
>
3-
> This spec is in a preliminary stage of active development, and can change a lot before reaching `Draft` stage. For more information, please see the [Roadmap](ROADMAP.md) or [how to get involved](INTERESTED_DEVELOPERS.md).
42
>
5-
> You can find our community in the [graphql-over-http channel](https://discord.com/channels/625400653321076807/863141924126588958) on the [GraphQL Foundation Discord](https://discord.graphql.org).
3+
> This spec is in a preliminary stage of active development, and can change a
4+
> lot before reaching `Draft` stage. For more information, please see the
5+
> [Roadmap](ROADMAP.md) or [how to get involved](INTERESTED_DEVELOPERS.md).
6+
>
7+
> You can find our community in the
8+
> [graphql-over-http channel](https://discord.com/channels/625400653321076807/863141924126588958)
9+
> on the [GraphQL Foundation Discord](https://discord.graphql.org).
610
711
---
812

913
# GraphQL over HTTP
1014

1115
**Introduction**
1216

13-
HTTP is the most common choice as the client-server protocol when using GraphQL because of its ubiquity.
14-
However the [GraphQL specification](https://graphql.github.io/graphql-spec/) deliberately does not specify the transport layer.
17+
HTTP is the most common choice as the client-server protocol when using GraphQL
18+
because of its ubiquity. However the
19+
[GraphQL specification](https://graphql.github.io/graphql-spec/) deliberately
20+
does not specify the transport layer.
1521

16-
The closest thing to an official specification is the article [Serving over HTTP](https://graphql.org/learn/serving-over-http/).
17-
Leading implementations on both client and server have mostly upheld those best practices and thus established
18-
a de-facto standard that is commonly used throughout the ecosystem.
22+
The closest thing to an official specification is the article
23+
[Serving over HTTP](https://graphql.org/learn/serving-over-http/). Leading
24+
implementations on both client and server have mostly upheld those best
25+
practices and thus established a de-facto standard that is commonly used
26+
throughout the ecosystem.
1927

20-
This specification is intended to fill this gap by specifying how GraphQL should be served over HTTP.
21-
The main intention of this specification is to provide interoperability between different client libraries, tools
22-
and server implementations.
28+
This specification is intended to fill this gap by specifying how GraphQL should
29+
be served over HTTP. The main intention of this specification is to provide
30+
interoperability between different client libraries, tools and server
31+
implementations.
2332

2433
**Spec Location**
2534

26-
The GraphQL over HTTP specification is edited in the [spec-md markdown file](./spec/GraphQLOverHTTP.md).
35+
The GraphQL over HTTP specification is edited in the
36+
[spec-md markdown file](./spec/GraphQLOverHTTP.md).
2737

28-
In the future, we plan that you would be able to view the generated form of the specification as well.
38+
In the future, we plan that you would be able to view the generated form of the
39+
specification as well.
2940

3041
### Contributing to this repo
3142

32-
This repository is managed by EasyCLA. Project participants must sign the free ([GraphQL Specification Membership agreement](https://preview-spec-membership.graphql.org) before making a contribution. You only need to do this one time, and it can be signed by [individual contributors](https://individual-spec-membership.graphql.org/) or their [employers](https://corporate-spec-membership.graphql.org/).
43+
This repository is managed by EasyCLA. Project participants must sign the free
44+
([GraphQL Specification Membership agreement](https://preview-spec-membership.graphql.org)
45+
before making a contribution. You only need to do this one time, and it can be
46+
signed by
47+
[individual contributors](https://individual-spec-membership.graphql.org/) or
48+
their [employers](https://corporate-spec-membership.graphql.org/).
3349

34-
To initiate the signature process please open a PR against this repo. The EasyCLA bot will block the merge if we still need a membership agreement from you.
50+
To initiate the signature process please open a PR against this repo. The
51+
EasyCLA bot will block the merge if we still need a membership agreement from
52+
you.
3553

36-
You can find [detailed information here](https://github.com/graphql/graphql-wg/tree/main/membership). If you have issues, please email [[email protected]](mailto:[email protected]).
54+
You can find
55+
[detailed information here](https://github.com/graphql/graphql-wg/tree/main/membership).
56+
If you have issues, please email
57+
3758

38-
If your company benefits from GraphQL and you would like to provide essential financial support for the systems and people that power our community, please also consider membership in the [GraphQL Foundation](https://foundation.graphql.org/join).
59+
If your company benefits from GraphQL and you would like to provide essential
60+
financial support for the systems and people that power our community, please
61+
also consider membership in the
62+
[GraphQL Foundation](https://foundation.graphql.org/join).
3963

4064
---
65+
4166
Copyright Joint Development Foundation Projects, LLC, GraphQL Series.<br>
42-
[graphql.org](https://graphql.org) | [Spec](https://spec.graphql.org) | [GitHub](https://github.com/graphql/graphql-over-http) | [GraphQL Foundation](https://foundation.graphql.org) | [Code of Conduct](https://code-of-conduct.graphql.org) | [Discord](https://discord.com/channels/625400653321076807/863141924126588958) | [Store](https://store.graphql.org)
67+
[graphql.org](https://graphql.org) | [Spec](https://spec.graphql.org) |
68+
[GitHub](https://github.com/graphql/graphql-over-http) |
69+
[GraphQL Foundation](https://foundation.graphql.org) |
70+
[Code of Conduct](https://code-of-conduct.graphql.org) |
71+
[Discord](https://discord.com/channels/625400653321076807/863141924126588958) |
72+
[Store](https://store.graphql.org)

ROADMAP.md

Lines changed: 38 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,24 @@
22

33
## Mission
44

5-
_Provide a specification that allows GraphQL clients and servers with different implementations and technology stacks to interact freely over HTTP if both client and server are compliant._
5+
_Provide a specification that allows GraphQL clients and servers with different
6+
implementations and technology stacks to interact freely over HTTP if both
7+
client and server are compliant._
68

79
## Guiding principles
810

911
- Development is based on use cases
1012
- Strive for backwards-compatible progress
11-
- Servers supporting later versions of this spec should support clients using earlier versions of this spec.
13+
- Servers supporting later versions of this spec should support clients using
14+
earlier versions of this spec.
1215

1316
## Version 1.0
1417

15-
After significant meetings, the Working Group has come to consensus that a first version of this spec should
16-
introduce some key changes over the prior existing uses of GraphQL over HTTP.
17-
This first version _might_ also codify existing prior common usages of GraphQL over HTTP.
18-
In layout and structure version 1.0 should lay a foundation for future development and standardization.
18+
After significant meetings, the Working Group has come to consensus that a first
19+
version of this spec should introduce some key changes over the prior existing
20+
uses of GraphQL over HTTP. This first version _might_ also codify existing prior
21+
common usages of GraphQL over HTTP. In layout and structure version 1.0 should
22+
lay a foundation for future development and standardization.
1923

2024
### Scope
2125

@@ -28,7 +32,8 @@ In layout and structure version 1.0 should lay a foundation for future developme
2832
### Actions
2933

3034
- Move to the GraphQL Foundation
31-
- Set of running examples of ~5 of the most popular servers/clients with a standard, minimal GraphQL schema
35+
- Set of running examples of ~5 of the most popular servers/clients with a
36+
standard, minimal GraphQL schema
3237
- Test suite to automate testing of GraphQL servers compliance with the spec
3338
- Can be applied to examples of popular server or public GraphQL APIs
3439
- Results of popular libraries and APIs compliance with current spec
@@ -43,42 +48,52 @@ Future versions of the spec may include these concepts:
4348

4449
- Caching
4550
- Batching
46-
- Versioning mechanism for servers/clients to communicate what versions they support
47-
- Modularity - A way to communicate what features (and possibly versions) of the HTTP spec are supported by a server
51+
- Versioning mechanism for servers/clients to communicate what versions they
52+
support
53+
- Modularity - A way to communicate what features (and possibly versions) of the
54+
HTTP spec are supported by a server
4855
- Persisted queries
4956
- Multipart requests (file uploads)
5057
- Submit MIME type application/graphql+json to IANA
51-
- New HTTP SEARCH method and how it could be used https://tools.ietf.org/html/draft-snell-search-method-01
58+
- New HTTP SEARCH method and how it could be used
59+
https://tools.ietf.org/html/draft-snell-search-method-01
5260

5361
## Stages
5462

55-
The process of writing this specification may proceed according this rough outline of stages.
56-
We are currently in the *Preliminary Stage*.
63+
The process of writing this specification may proceed according this rough
64+
outline of stages. We are currently in the _Preliminary Stage_.
5765

5866
### Stage 0: Preliminary
5967

60-
In the *Preliminary Stage*, things may change rapidly and no one should count on any particular
61-
detail remaining the same.
68+
In the _Preliminary Stage_, things may change rapidly and no one should count on
69+
any particular detail remaining the same.
6270

63-
- If a PR has no requests for changes for 2 weeks then it should be merged by one of the maintainers
64-
- If anyone has an objection later, they just open a PR to make the change and it goes through the same process
71+
- If a PR has no requests for changes for 2 weeks then it should be merged by
72+
one of the maintainers
73+
- If anyone has an objection later, they just open a PR to make the change and
74+
it goes through the same process
6575
- Optional: When there is lots of consensus but not 100% full consensus then:
66-
- We might merge the consensus-view and debate modifying it in parallel
67-
- Anyone can extract the non-controversial part and make a separate PR
76+
- We might merge the consensus-view and debate modifying it in parallel
77+
- Anyone can extract the non-controversial part and make a separate PR
6878

69-
When the spec seems stable enough, the working group would promote it to *Proposal Stage*.
79+
When the spec seems stable enough, the working group would promote it to
80+
_Proposal Stage_.
7081

7182
### Stage 1: Proposal
7283

73-
In the *Proposal Stage*, things can still change but it is reasonable to start implementations.
84+
In the _Proposal Stage_, things can still change but it is reasonable to start
85+
implementations.
7486

75-
- Before release of the spec, in "Draft" stage, we have to review the spec and review all open PRs
87+
- Before release of the spec, in "Draft" stage, we have to review the spec and
88+
review all open PRs
7689
- Every merge to master would need strong consensus
7790
- Only changes that address concerns
7891
- Implementers could start trying things
7992

80-
After the spec and open PRs are reviewed and there is strong consensus, the working group would promote it to *Draft Stage*.
93+
After the spec and open PRs are reviewed and there is strong consensus, the
94+
working group would promote it to _Draft Stage_.
8195

8296
### Stage 2: Draft
8397

84-
This corresponds to the general [GraphQL Draft Stage](https://github.com/graphql/graphql-spec/blob/master/CONTRIBUTING.md#stage-2-draft)
98+
This corresponds to the general
99+
[GraphQL Draft Stage](https://github.com/graphql/graphql-spec/blob/master/CONTRIBUTING.md#stage-2-draft)

cspell.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: en-US
2+
ignoreRegExpList:
3+
# Posessives
4+
- /[a-z]{2,}'s/
5+
words:
6+
# Terms of art
7+
- endianness
8+
- interoperation
9+
- monospace
10+
- openwebfoundation
11+
- parallelization
12+
- structs
13+
- subselection
14+
# Software
15+
- ical
16+
# Fictional characters / examples

0 commit comments

Comments
 (0)