Commit graph

505 commits

Author SHA1 Message Date
Daniele Zurico
fdfb53220b docs: Correct typos in Features/Subscriptions. (#1178) 2018-06-15 16:06:10 +03:00
Evans Hauser
ff91ba93d4
docs: add subscriptions by @daniele-zurico into the index 2018-06-15 00:00:25 -07:00
Daniele Zurico
d4a38b8275 AS2: Docs for subscriptions (#1165)
* add doc for subscriptions

* apply few changes to the readme

* apply few changes to the readme

* add more informations in case req is null

* changed last sentence

* apply comments

* typo

* remove idea folder

* fix indentation

* fix typo

* subscriptions with middleware

* subscriptions with middleware

* subscriptions with middleware
2018-06-14 23:39:19 -07:00
Evans Hauser
1592c545dc
docs: change beta to release candidate 2018-06-14 23:37:36 -07:00
Martijn Walraven
685d3399db Apollo Server 2.0 - Caching + RESTDataSource (#1163)
* Enable declarationMap in tsconfig.json

See http://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.html

* Add apollo-server-caching package and improve typings

* Remove superfluous test steps

* Add .npmignore to apollo-server-caching

* Add apollo-server-env and apollo-datasource-rest packages

* Fix broken imports

* Use prepublish instead of prepare

* cache is now passed to data sources from ApolloServer constructor

* fix Object.values to use the object passed in rather than this

* add initial datasource test

* docs: initial data source documentation

* docs: initial data source documentation

* compiles and documentation now highlights code in data-sources.md

* Some changes to the data source docs
2018-06-14 23:13:33 -07:00
Evans Hauser
1f9f307d55
docs: initial engine migration guide 2018-06-14 13:24:56 -07:00
Evans Hauser
95fe31dbb6 docs: server.listen to app.listen for express examples 2018-06-14 11:57:30 -07:00
Evans Hauser
7ded129726 docs: replace registerServer with applyMiddleware 2018-06-14 11:57:30 -07:00
Evans Hauser
e420094f3d
docs: remove old hapi migration and move images into same folder 2018-06-13 15:15:09 -07:00
Evans Hauser
5e59605c1e
docs: remove GraphiQL and old migration guides 2018-06-13 14:02:49 -07:00
David Glasser
1fd3b216d0 Remove engineProxy support
We recommend the use of apollo-engine-reporting and the other built-in features
of AS 2.0 rather than engineProxy. You can still use the apollo-engine npm
module manually with AS 2.0, or stay on AS 1.0.
2018-06-13 12:32:05 -07:00
Evans Hauser
ba31cf7a44
Integrations export their own ApolloServer (#1161)
* feat: ApolloServer is created and exported by all variants

* docs: add initial docs around exporting ApolloServer

* feat: export gql from integrations

* docs: change apollo-server examples to use express with registerServer

* server: remove registerExpressServer

* core, docs: comment functions, fix api reference, context creation more like middleware args

* docs: fix integrationed typo
2018-06-12 17:46:56 -07:00
Evans Hauser
a7cd3a43e8 Apollo Server 2:Automatic Persisted Queries (#1149) 2018-06-11 15:44:20 -07:00
Clarence Ngoh
5f307928a2 Add BadUserInputError as extension of ApolloError (#1143)
* Add BadUserInputError and TransientError as extensions of ApolloError

* remove TransientError

* update test so that properties end up under `error.extensions.exception`

* update documentation to talk about BadUserInputError

* check for properties after formatApolloErrors has been called

* fixed highlighted lines for docs

* export BadUserInputError from `apollo-server`

* fixed highlighted lines for docs

* export BadUserInputError from `apollo-server`

* update changelog
2018-06-08 10:39:23 -07:00
Evans Hauser
63b8b22d53
docs: correct headers on 2.0 migration guide 2018-06-07 11:55:12 -07:00
Evans Hauser
62a4e04cf6
docs: convert import to requires (#1150) 2018-06-07 11:40:41 -07:00
Evans Hauser
2ba5da9a59
docs: using an existing schema added to migration guide 2018-06-06 11:42:25 -07:00
Evans Hauser
1bfead6586
docs: remove section on resolvers 2018-06-06 11:36:49 -07:00
Evans Hauser
5b4644fbfd
docs: add missing gql tags and add comments that gql is necessary for apollo-server 2018-06-06 11:21:05 -07:00
Evans Hauser
3deceffe93
docs: add section on logging under features 2018-06-04 14:35:39 -07:00
Evans Hauser
311c927c83
docs: add information around setting up additional middleware in migration/api 2018-06-04 14:34:20 -07:00
Evans Hauser
9ec6ecc8bb
docs: unindent getting started code 2018-06-04 14:33:18 -07:00
Yihong
04d0322d0c apollo-server: Fix registerServer path argument (#1133)
* core: add test for context as async function

* core,express: add support and test of context as async function

* Update apollo-server.md

Fix style for `registerServer`.
2018-06-04 09:49:21 -07:00
Prosper Otemuyiwa
561033a17f
Merge pull request #1124 from apollographql/add-note-to-gql
Update Apollo Server docs, gql, middleware
2018-06-01 22:18:59 +01:00
unicodeveloper
c26affb990 add middleware example 2018-06-01 22:16:28 +01:00
unicodeveloper
31609b6853 Add usage option for middleware in api ref 2018-06-01 21:56:52 +01:00
Evans Hauser
db3316cbac
Merge branch 'version-2' into refactor-2.0 2018-06-01 13:36:34 -07:00
unicodeveloper
8821ba522a import ApolloError 2018-06-01 21:32:57 +01:00
unicodeveloper
3b956424e9 Add clarification for gql 2018-06-01 21:29:22 +01:00
Jesse Rosenberger
83f98e4902
chore(deps): update dependency meteor-theme-hexo to v1.0.13 (#1118) 2018-06-01 01:06:10 +03:00
Jesse Rosenberger
139e6b70e9
chore(deps): update dependency meteor-theme-hexo to v1.0.13 (#1118) 2018-06-01 01:04:20 +03:00
David Glasser
7444904518 Update for graphql-extensions@0.1.0 API
- Actually call validationDidStart and parsingDidStart.

- Use new graphql-extensions API which:
  - replaces fooDidEnd with a handler returned by fooDidStart
  - adds options to various methods
  - has a new willSendResponse method
  - requires you to construct the extension objects yourself (but make
    the external API for specifying extensions to ApolloServer be
    factories, because extensions are per request)

- Make a better effort at consistently calling end handlers even on error
2018-05-31 00:14:59 -07:00
Sebastian
2acf5654c3 Added an option to support additional extensions
(Originally #934, tweaked by @glasser.)
2018-05-31 00:14:59 -07:00
Evans Hauser
7e172b038d docs: replace references to variants with integrations 2018-05-30 15:25:12 -07:00
Evans Hauser
13e788e92b docs: file uploads, subscriptions, graphql playground added to whats new 2018-05-30 15:25:12 -07:00
Renovate Bot
f6fd3b2231 chore(deps): update dependency meteor-theme-hexo to v1.0.10 2018-05-23 13:02:39 +00:00
Evans Hauser
a1084059c7
docs: add code snippet example to context api reference 2018-05-22 17:47:48 -07:00
Evans Hauser
d84061b148
docs: remove old way of adding schema directives 2018-05-22 17:39:37 -07:00
Evans Hauser
531162c693
docs: fix dead links 2018-05-22 17:39:19 -07:00
Evans Hauser
20a41163c1
docs: remove dead links from essentials data and fix context creation 2018-05-22 17:38:41 -07:00
Evans Hauser
5577f54577
docs: flesh out api documentation for apollo-server 2018-05-22 17:14:52 -07:00
Evans Hauser
e604cfcb9c
docs: add pointer to apollo server 2 documentation (#1083) 2018-05-22 16:01:01 -07:00
Jesse Rosenberger
f5982b28cb
Merge pull request #1069 from petetnt/patch-1
Fix typos in setup.md
2018-05-21 16:39:10 +02:00
hoishin
1a009c6d4d fix graphiql docs for hapi 2018-05-17 14:19:27 -06:00
Pete Nykänen
4ce5188b6e
Fix typos in setup.md 2018-05-15 23:37:19 +03:00
Renovate Bot
1d6ca41f28
chore(deps): update dependency hexo-server to v0.3.2 2018-05-11 15:54:20 -07:00
Jesse Rosenberger
adaad08615
Temporarily remove version 2. 2018-05-11 15:53:06 -07:00
Evans Hauser
260061301c
docs: add mls and nytimes blogs as case studies 2018-05-09 11:12:21 -07:00
Evans Hauser
0a552374c7
docs: add api reference link to delegateSchema in schema-delegation 2018-05-09 11:12:00 -07:00
Evans Hauser
1068793f79
docs: add code examples for whats-new and new features 2018-05-09 11:10:55 -07:00