Commit graph

2002 commits

Author SHA1 Message Date
Evans Hauser
31e93d0d55
remove setup 2018-07-13 13:33:58 -07:00
Evans Hauser
b7c5ceaade
fix export of hapi middleware 2018-07-13 13:23:45 -07:00
Evans Hauser
c00918b868
remove apollo-server-fastify 2018-07-13 13:20:39 -07:00
Evans Hauser
c3cee59985
Merge branch 'master' into version-2 2018-07-13 13:20:00 -07:00
Evans Hauser
170f072f96
bring version-2 up to date 2018-07-13 13:14:19 -07:00
Jesse Rosenberger
7f11c605a1
Fix broken link to CDN guide, which is now on /docs/.
It only lived here for one day, but this particular link wasn't updated!
2018-07-13 12:06:23 -07:00
Evans Hauser
bc84547f9b
v1.4.0 2018-07-13 11:46:55 -07:00
Aditya Pratap Singh
8d5baecc52 feat(fastify): Integrate apollo-fastify plugin (#1013)
* Integrate apollo-fastify plugin #626

* #626 Fix typescript issues

* #626 Update changelog

* #626 Update README

* #626 Fix the breaking tests

* #626 Fix code review comments

* #626 Run Hapi tests only for node 8 and 9

* #626 Run Hapi tests only for node 8 and 9

* #626 Commit package.lock in working state

* #626 Use npm instead of yarn for node 4

* Revert package-lock and circle ci test job steps

* #626 Bump the version
2018-07-13 11:37:44 -07:00
Najeeb Rifaat
d3aedd31e6 fix(hapi16_support): add hapi 16 next() invocation [closes #744] (#743)
* chore(hapi16_support): add hapi 16 next() invocation

* run lint fix

* update changelog
2018-07-13 11:30:47 -07:00
Evans Hauser
d4a8e1ac7f
Throw error in applyMiddleware for vanilla apollo-server (#1345)
applyMiddleware is not a public api for apollo-server, so it should not
be used an direct people to the apollo-server-express integration.
2018-07-13 10:50:50 -07:00
Garanzha Dmitriy
8bcb66622d Add skipValidation option. (#839)
* Don't validate if query is already an AST.

* Skip validation option.
2018-07-13 10:44:10 -07:00
Evans Hauser
fbf6c6b226
update playground to include #1319 2018-07-13 10:43:38 -07:00
unicodeveloper
2775eebc54 Merge branch 'abernix/follow-up-1270' into version-2 2018-07-13 10:25:54 -07:00
unicodeveloper
a31501ff66 DeleteD 2018-07-13 10:25:42 -07:00
Jake Dawkins
b5039f3aaf Added option to disable rewriting URL for GraphiQL (#1047)
* added option to disable rewriting url for graphiql

* updated docs

* added link to PR in changelog
2018-07-13 10:25:23 -07:00
Jason Lengstorf
bf06caf1be docs: add note about passing context as a function (#757)
* docs: add note about passing context as a function

We realized today (by mistake) that the value of `context` in `GraphQLOptions` can be a function. Adding a note to the docs so it doesn't surprise anyone else.

* docs: update context as a function docs

- fix description per @n1ru4l's feedback
- add a code example of instantiating a new class in the context for each request
2018-07-13 10:17:02 -07:00
Evans Hauser
990d915aec
Apollo Server 2: Remove formatParams (#1331)
* remove formatParams

* remove formatParams from documentation

* check for valid query string after persisted query mapping

* fix sentence about different logging and label extensions as experimental

* mark graphql-extensions as more experimental
2018-07-13 09:44:13 -07:00
Evans Hauser
78dcf4fccf
remove calculate headers as a function (#1337) 2018-07-13 09:43:28 -07:00
Renovate Bot
f6e48bb9c0 chore(deps): update dependency koa to v2.5.2 2018-07-12 08:48:38 +00:00
Jesse Rosenberger
c5082ce64f
docs: Add browser auto-reloading on source content changes. (#1336)
By virtue of a relatively simple `hexo-browsersync` package[0], which
implements BrowserSync[1] in Hexo, this change brings support for automatically
reloading the browser when the source content has changed.

No more pressing "Reload" in order to see the changes to the Markdown source
when working on documentation! 🎉

[0]: https://npm.im/hexo-browsersync
[1]: https://www.browsersync.io
2018-07-11 16:36:47 -07:00
Sasha Jolich
7f157da399 Fixed a couple typos (#1309) 2018-07-11 15:56:07 -07:00
Adam Zionts
11b867114e Move gui option into constructor and use playground (#1297)
* Add a wider diversity of `gui` options

Although I know we want to remain less tied to the GraphQL Playground
GUI options, we definitely want to support a wider variety of options to
be passed in. This adds support for specifying partial options either
statically or dynamically for the gui, which can be extended to allow
for a wider array of guis than only GraphQL playground.

* Add boolean option and configuration for tabs

* move gui setting into ApolloServer Constructor

* document playground configuration in the constructor

* update playground types and fixed micro + koa integrations

* change gui to playground

* docs: change gui to playground

* fix logic for playground creation
2018-07-11 15:42:00 -07:00
Martijn Walraven
f055d282e0 Extract abstract DataSource superclass into apollo-datasource package 2018-07-11 15:29:46 -07:00
C. T. Lin
299018fd5c [apollo-server-koa] use exported bodyParser.Options type instead of inferred type (#1334) 2018-07-11 15:00:16 -07:00
Martijn Walraven
54a8fac80b RESTDataSource: Serialize request bodies that have a toJSON method as JSON 2018-07-11 14:31:32 -07:00
uosl
1022ae17ed RESTDataSource: Do not serialize body values that aren't objects (#1316) 2018-07-11 13:53:56 -07:00
Martijn Walraven
c200df05d3 RESTDataSource: Add data to errors thrown for error responses
Closes #1311.
2018-07-11 13:49:35 -07:00
Evans Hauser
de4760ba3b
Expose Cors option from vanilla ApolloServer constructor (#1335)
* add cors option to apollo-server's constructor

* docs: add cors option to costructor for apollo-server

* expose CorsOptions from vanilla and express integrations

* Update apollo-server.md
2018-07-11 13:46:51 -07:00
Gauthier Rodaro
ecc56690df RESTDataSource: add didReceiveResponse method (#1325) 2018-07-11 06:17:03 -07:00
renovate[bot]
890e10b799
chore(deps): update dependency apollo-hexo-config to v1.0.8 (#1329)
This Pull Request updates dependency [apollo-hexo-config](https://github.com/apollographql/apollo-hexo-config) from `v1.0.7` to `v1.0.8`



<details>
<summary>Release Notes</summary>

### [`v1.0.8`](https://github.com/apollographql/apollo-hexo-config/compare/v1.0.7...v1.0.8)
[Compare Source](https://github.com/apollographql/apollo-hexo-config/compare/v1.0.7...v1.0.8)


---

</details>




---

This PR has been generated by [Renovate Bot](https://renovatebot.com).
2018-07-10 16:20:27 -07:00
renovate[bot]
f2ff23fba6 chore(deps): update dependency apollo-hexo-config to v1.0.8 (#1329)
This Pull Request updates dependency [apollo-hexo-config](https://github.com/apollographql/apollo-hexo-config) from `v1.0.7` to `v1.0.8`



<details>
<summary>Release Notes</summary>

### [`v1.0.8`](https://github.com/apollographql/apollo-hexo-config/compare/v1.0.7...v1.0.8)
[Compare Source](https://github.com/apollographql/apollo-hexo-config/compare/v1.0.7...v1.0.8)


---

</details>




---

This PR has been generated by [Renovate Bot](https://renovatebot.com).
2018-07-10 16:18:55 -07:00
Prosper Otemuyiwa
9034ac95af
Add redirect for file-uploads (#1328) 2018-07-10 14:02:01 -07:00
Evans Hauser
f9373bf341
add graphql types referenced in creating-directives 2018-07-10 10:26:21 -07:00
Evans Hauser
2d7af8b4b3
Add CDN and APQ to What's new (#1320)
* add apq and cdn to what's new section

* fix typos in documentation
2018-07-10 10:07:50 -07:00
Radu Achim
e83dcbc433 Round the ttl to an integer so that redis doesn't b0rk (#1323)
Fixes #1306.
2018-07-10 09:50:06 -07:00
Prosper Otemuyiwa
61b4939327
Enable GraphQLUpload for Apollo Server 2.0 (#1322)
* export GraphQLUpload

* fix GraphQLScalar typing
2018-07-10 05:36:34 +01:00
Evans Hauser
13b796fe34
Publish
- apollo-cache-control@0.2.0-rc.0
 - apollo-datasource-rest@2.0.0-rc.7
 - apollo-engine-reporting@0.0.0-rc.1
 - apollo-server-caching@2.0.0-rc.7
 - apollo-server-cloudflare@2.0.0-rc.7
 - apollo-server-core@2.0.0-rc.7
 - apollo-server-env@2.0.0-rc.7
 - apollo-server-errors@2.0.0-rc.7
 - apollo-server-express@2.0.0-rc.7
 - apollo-server-hapi@2.0.0-rc.7
 - apollo-server-integration-testsuite@2.0.0-rc.7
 - apollo-server-koa@2.0.0-rc.7
 - apollo-server-lambda@2.0.0-rc.7
 - apollo-server-memcached@2.0.0-rc.7
 - apollo-server-micro@2.0.0-rc.7
 - apollo-server-redis@2.0.0-rc.7
 - apollo-server@2.0.0-rc.7
 - apollo-tracing@0.2.0-rc.0
 - graphql-extensions@0.1.0-rc.1
2018-07-09 19:32:59 -07:00
Evans Hauser
e29f8048e4
Enable engine reporting in Lambda (#1313)
* add disableInterval option to engine reporting

* set engine options for lambda

* lambda: add comment on constructor

* lambda: update readme typo and include callout to use graphql.js

* disableInterval -> sendReportsImmediately

* use sendReportsImmediately correctly and fix compilation

* uses new Header to fix different header combination, fixes #1301

* add apollo-server-env dependency

* fix logic error in engine reporting
2018-07-09 19:29:05 -07:00
Martijn Walraven
f551e2bb44 Use apq prefix for persisted query caching 2018-07-09 19:28:21 -07:00
Martijn Walraven
9e60f42845 Use main cache for persisted queries by default 2018-07-09 19:25:09 -07:00
Martijn Walraven
f8feca870a Move lru-cache dependency to apollo-server-caching 2018-07-09 16:51:30 -07:00
Martijn Walraven
d01b18a704 Update GraphQL Playground version 2018-07-09 16:35:30 -07:00
Danilo Bürger
314f0ecf43 Hint about Upload scalar when setting schema manually (#1318) 2018-07-09 14:40:22 -07:00
Jesse Rosenberger
075c0527df
Also rename playground to graphql-playground in _config.yml. 2018-07-09 10:08:05 -07:00
Jesse Rosenberger
8ad31377d8
Follow-up editorial for GraphQL Playground doc. (#1270). 2018-07-09 08:54:08 -07:00
C. T. Lin
dbaa465646 Apollo Server 2 Koa integration (#1282)
* koa integration

* use koa-bodyparser v3 for node 6 support

* use middlewareFromPath instead of koa-router

* use async/await in koa fileUploadMiddleware
2018-07-06 13:52:56 -07:00
Renovate Bot
f508c04645 chore(deps): update dependency @types/node to v9.6.23 2018-07-06 03:04:04 +00:00
Evans Hauser
02d31559da
Add GraphQL Playground Documentation (#1270)
* add initial playground documentation

* link to playground in whats-new

* address feedback
2018-07-05 16:17:39 -07:00
Hugh Willson
c356bcf3f2 Apollo Server 2 Micro integration (#1279)
* Initial basic Micro integration

* Wire up health check capabilities

* Add playground support; Refactoring

* Add custom path support

* Add file upload support

* Add subscription support

* Documentation and formatting updates

* Wire up tests

* Add Node 10 workaround for file upload testing

* Code review changes (docs, naming, formatting)

* Adjust exports to line up with other integrations

* micro: add graphql to npm install and lines to highlight in docs
2018-07-05 11:40:15 -07:00
Martijn Walraven
94d4d4968c Use for-of loops instead of standard for loops 2018-07-04 22:31:55 +02:00