David Glasser
e2df79d06c
core: return PersistedQueryNotSupported for Apollo Persisted Queries ( #982 )
...
Apollo Persisted Queries is a standard for sending queries as short hashes
instead of full strings, designed to work well with GET requests. It is
implemented by servers including the Apollo Engine Proxy, and by the
apollo-link-persisted-query client.
A common configuration is to set up persisted queries on production servers but
not in development. It is still convenient to leave apollo-link-persisted-query
always on, though. While apollo-link-persisted-query can detect that servers
don't support PQs, it works better if the server actually says it doesn't
support the PQ, instead of trying to process a request without a query and
potentially printing a confusing stack trace. This commit makes apollo-server
directly return PersistedQueryNotSupported instead of allowing confusing stack
traces to occur.
2018-04-24 06:29:07 -04:00
Evans Hauser
723b52845a
standardize organization of typeDefs using concat and fixed extend example
2018-04-23 22:46:43 -07:00
Jake Dawkins
4fae3da13e
added some detail and fixed grammar ( #981 )
2018-04-23 22:04:15 +03:00
James Baxley
bdc2a82db8
docs: Best practices ( #978 )
...
* clean up some code examples
* add in some best practies
2018-04-23 22:01:54 +03:00
Jesse Rosenberger
e4977737e9
Rename slugs for "Essentials" pages to match other naming conventions.
...
Plus, slugs.
cc @JakeDawkins
2018-04-23 19:04:03 +03:00
Jesse Rosenberger
c65b7a57bf
Merge remote-tracking branch 'origin/master' into docs-overhaul
2018-04-23 15:28:29 +03:00
Jesse Rosenberger
ac6411b238
Further-remove "Query Mechanics", this time from the sidebar.
...
It was already deleted elsewhere.
2018-04-23 12:47:18 +03:00
Jesse Rosenberger
ded3aeb708
The backends section has been temporarily eradicated.
2018-04-23 12:29:44 +03:00
Evans Hauser
99a39907f4
add advanced section for scalars and enums
2018-04-22 23:40:56 -07:00
Evans Hauser
899dc68cd3
schema organization now places resolvers next to typeDefs
2018-04-22 22:53:29 -07:00
Renovate Bot
d74f5e78e6
chore(deps): update dependency @types/chai to v4.1.3
2018-04-21 06:56:11 +00:00
Evans Hauser
74431f57b7
initial information about schema organization lifted from GraphQL tools
2018-04-20 18:56:49 -07:00
Evans Hauser
4cb76e89e1
flesh out the schema/types
2018-04-20 16:30:02 -07:00
Evans Hauser
e3ea618788
resolvers and directives sections lifted from graphql-tools
2018-04-20 14:51:04 -07:00
Jesse Rosenberger
82caa753cd
Shuffle schema/query/resolver content bucketing.
2018-04-20 22:01:49 +03:00
Jesse Rosenberger
200c385757
Remove some leftover artifacts.
2018-04-20 21:54:51 +03:00
Evans Hauser
c7854a469c
add mutation sections to authentication and import -> require
2018-04-20 11:33:44 -07:00
Jesse Rosenberger
6042c08011
Random spelling fixes.
2018-04-20 21:16:46 +03:00
Jesse Rosenberger
3acdacbfa9
Context 👋
2018-04-20 20:36:32 +03:00
Jesse Rosenberger
1d09c86f32
title: Fetching data
2018-04-20 20:25:23 +03:00
Jesse Rosenberger
f2b27a6630
Title: Running a server.
2018-04-20 20:22:52 +03:00
Jesse Rosenberger
476433418c
Change subtitles.
2018-04-20 20:03:50 +03:00
Jesse Rosenberger
cb792f5f0d
Use a directory called images
instead of img
.
...
While a lose convention, `images` is more common and more explicit.
2018-04-20 19:38:48 +03:00
Jesse Rosenberger
b605f43115
Follow up on deploy
=> deployment
renaming.
2018-04-20 19:36:08 +03:00
Jesse Rosenberger
7e58b7a24d
GraphQL syntax highlighting with "graphql" type.
2018-04-20 19:35:27 +03:00
Jesse Rosenberger
70c1d79a64
Bash syntax highlighting to just "Shell".
2018-04-20 19:34:35 +03:00
Jesse Rosenberger
081e69faf8
"Why Apollo?" 👉 "Why Apollo Server?"
2018-04-20 19:25:24 +03:00
Jesse Rosenberger
bb6fb52094
Add lambda
2018-04-20 17:52:27 +03:00
Jesse Rosenberger
570fa609ba
Remove permissions residue.
2018-04-20 17:52:17 +03:00
Jesse Rosenberger
770c12cc30
Remove secrets.
2018-04-20 17:52:01 +03:00
Jesse Rosenberger
310368e705
Fix deployment sections.
2018-04-20 17:49:52 +03:00
Jesse Rosenberger
c475f95fd2
Infrastructure 👋
2018-04-20 17:46:39 +03:00
Jesse Rosenberger
ac8d19a594
Backends 👋
2018-04-20 17:44:40 +03:00
Jesse Rosenberger
d68695ed91
Remove Engine.
2018-04-20 17:32:08 +03:00
Jesse Rosenberger
cc6c8921cc
Remove subscriptions.
2018-04-20 17:30:48 +03:00
Jesse Rosenberger
3c79bf17e8
Remove schema stitching.
2018-04-20 17:30:23 +03:00
Jesse Rosenberger
a282c3c00c
Hexo version.
2018-04-20 17:29:31 +03:00
Jesse Rosenberger
d0b24a2381
Follow-up on previous commit.
2018-04-20 17:29:11 +03:00
Jesse Rosenberger
e2c2e200f4
Move building queries and mutations into building a schema.
2018-04-20 17:20:30 +03:00
Jesse Rosenberger
0e8e490ba1
Re-structure per conversation with @evans and @jbaxleyiii.
2018-04-20 17:12:18 +03:00
Jesse Rosenberger
7895d0ea30
Rename "deployment/best-practices" page to "deployment/index".
...
This will allow `/deployment` to be the "basics" page for deployment and
avoid re-using the term "Best Practices" in a section that isn't inside the
"best practices" portion of the guide.
2018-04-20 15:56:44 +03:00
Jesse Rosenberger
de32033f6f
Skip building anything besides "Docs" on "docs" branches.
...
This should avoid needing to include `[skip ci]` on every commit on branches
which are committed to docs, though will still provide us one "master"
branch run of tests when the PR lands.
We may want to remove this (maybe? longer-term), but this seems like a
short-term "win" on this branch for the time being.
cc: @jbaxleyiii @evans
2018-04-20 15:52:41 +03:00
Jesse Rosenberger
6d452309ed
Move 'deploy/' to 'deployment/' to align with other directory name conventions.
2018-04-20 15:31:39 +03:00
Jesse Rosenberger
dd2a79e929
Move query mechanics into schema essentials.
2018-04-20 15:30:18 +03:00
Renovate Bot
591b0f2cae
chore(deps): update dependency typescript to v2.8.3
2018-04-20 10:02:15 +00:00
Renovate Bot
cc579227c8
chore(deps): update dependency @types/node to v9.6.6
2018-04-20 08:02:16 +00:00
Renovate Bot
64a01c94f8
chore(deps): update dependency @types/mocha to v5.2.0
2018-04-20 06:48:48 +00:00
Evans Hauser
43a7a99f2e
add deploy section for heroku
2018-04-19 21:41:27 -07:00
Evans Hauser
9c9dd52d28
Add best practices for authentication
2018-04-19 20:33:52 -07:00
Jesse Rosenberger
34d4c668ae
Remove TODO links marked with "XXX".
...
These are better as blank links so we can just search for `()`.
2018-04-19 15:00:41 +03:00