Commit graph

1928 commits

Author SHA1 Message Date
Martijn Walraven
b6e2096876 Allow passing a body to POST, PATCH and PUT in data source 2018-06-25 21:52:19 +02:00
Prosper Otemuyiwa
f3fd52da21 Add lambda to sidebar (#1240) 2018-06-25 11:04:10 -07:00
Martijn Walraven
4d7a34f6f5 Add trailing slash to baseURL of data source if needed 2018-06-25 19:54:04 +02:00
Renovate Bot
017aded658 chore(deps): update dependency hapi to v17.5.2 2018-06-25 09:32:26 +00:00
unicodeveloper
ef5e1e1758 Resolve comflicts 2018-06-25 07:48:14 +01:00
Prosper Otemuyiwa
daaa522bb9
Merge pull request #1228 from apollographql/add-lambda-docs
Apollo Server Lambda Docs
2018-06-25 07:42:24 +01:00
unicodeveloper
7f1b59d9d4 Add feedback 2018-06-25 07:30:08 +01:00
unicodeveloper
85aefb7bbb Fix 2018-06-25 07:17:45 +01:00
Prosper Otemuyiwa
96ff4b647a
Merge pull request #1239 from briandennis/patch-1
docs: fix typo in whats new documentation
2018-06-24 18:16:08 +01:00
Brian Dennis
73ec5e0c2a
docs: fix typo in whats new documentation 2018-06-24 12:11:19 -05:00
Martijn Walraven
acedc2690b v2.0.0-rc.3 2018-06-24 12:30:42 +02:00
Renovate Bot
b5723df0ba chore(deps): update dependency @types/aws-lambda to v8.10.7 2018-06-23 04:29:23 +00:00
Evans Hauser
846579db33
update README's and remove docs for registerServer (fixes #1216) 2018-06-22 17:51:56 -07:00
David Glasser
049a61a368 Send APQ info to traces 2018-06-22 17:25:41 -07:00
Evans Hauser
e62dc4e97d
AS2: Support APQ for Batches (#1234)
* add handling of persisted queries for batched requests

* Update runHttpQuery.ts

* fix prettier
2018-06-22 16:10:01 -07:00
Matías Olivera
76da232c1c Add graphql peer dependency to server integrations (#1232) 2018-06-22 15:55:08 -07:00
Tejas Kumar
7dc280df32 Fix Typo resovers -> resolvers (#1233)
* Fix Typo resovers -> resolvers

* Fix typo migh -> might

* Fix typo resover -> resolver again
2018-06-22 15:53:02 -07:00
Matías Olivera
69185082f0 Export UserInputError from lambda integration (#1230) 2018-06-22 14:35:52 -07:00
Evans Hauser
c8d747b021
Document Reporting to Engine and Add to migration guide (#1223)
* change logging to metrics and add section on Engine

* add to the migration guide

* address feedback and add clarity around logFunction

* address feedback for migration guide
2018-06-22 14:35:27 -07:00
Evans Hauser
98fd7ae1fd
test cache-control set to false after bug from #1217 2018-06-22 12:16:04 -07:00
Evans Hauser
ae14665aea
include test for tracing and add server creation helper method 2018-06-22 11:14:15 -07:00
unicodeveloper
5dfe2b5255 Add file upload section on sidebar 2018-06-22 19:04:53 +01:00
unicodeveloper
5a8043b387 Add meat to the file upload page 2018-06-22 19:00:37 +01:00
unicodeveloper
1bf2313f08 Initial documentation 2018-06-22 15:22:31 +01:00
unicodeveloper
d25aa20a51 Add Lambda docs 2018-06-22 15:17:01 +01:00
unicodeveloper
4b0a8f4e27 Add file upload page 2018-06-22 14:57:57 +01:00
Martijn Walraven
ebacd8fcda Add type dependencies to apollo-server-express 2018-06-22 10:15:59 +02:00
Renovate Bot
17bcf3e7b7 chore(deps): update dependency @types/koa-router to v7.0.30 2018-06-22 06:27:53 +00:00
Evans Hauser
4770f381d3
v2.0.0-rc.2 2018-06-21 19:53:33 -07:00
Matías Olivera
944a641770 Add missing apollo-upload-server dependency (#1221)
* Add missing apollo-upload-server dependency

* Reorder dependencies (drive-by)
2018-06-21 19:36:18 -07:00
Renovate Bot
69c39ccd8e chore(deps): update dependency meteor-theme-hexo to v1.0.15 2018-06-21 23:32:31 +00:00
David Glasser
742fb41bc3 Amortize encoding over each trace 2018-06-21 16:06:36 -07:00
Evans Hauser
3bc09decb4
v2.0.0-rc.1 2018-06-21 15:33:07 -07:00
Evans Hauser
8bd504505d
lambda: fix typings 2018-06-21 15:07:01 -07:00
Renovate Bot
b174f02c9d chore(deps): update dependency @types/node to v9.6.22 2018-06-21 21:32:25 +00:00
Alessio Dionisi
bb4f1c3a36 Apollo Server 2.0: AWS Lambda Integration (#1188)
* initial implementation of aws lambda integration for apollo server 2

* ApolloServer class

* package.json cleanup

* parse json of body

* createHandler function, complete README

* cors options

* update readme

* lambdaApollo tests

* fix tests
2018-06-21 13:54:53 -07:00
Evans Hauser
65d7b100e4
CDN cache-control headers (#1138)
* core: return response object from runHttpQuery

* core: change gqlResponse to graphqlResponse and add custom RequestInit type

* core: add cache-control headers based on the calcualted maxAge

* core: add extensions check during cache-control header creation

* core: create headers when cacheControl is not enabled otherwise pass through extensions

* express: initial tests of CDN cach-contol headers

* core: fixed tests with applyMiddleware and pass cacheControl config

* core: cache hint fixes, ignore when no maxAge, and check for rootKeys

* core: check for hints of length 0

* core: node 10 fails file upload test for some stream reason

* docs: add cdn caching section to features

* add space after // in comments

* fix feedback: proxy alignment and response creation

Adds cache-control toggles for http header calculation and stripping out
the cache control extensions from the respose.

Brings the default calculation of headers in line with the proxy.

* fix links in comments

* fix tests with null dereference

* update cdn docs and migration guide to include latest cdn configuration

* add not for engine migration to set engine to false

* add engine set to false in migration guide

* express: fixed tests

* address feedback to use omit and documentation

* docs: cdn caching is alternative to full response caching

* add back epipe check in upload tests
2018-06-21 13:29:14 -07:00
David Glasser
36c595bd12 Upgrade apollo-engine-reporting to beta.13
Smaller default uncompressedReportSizeTarget
2018-06-21 12:38:36 -07:00
Martijn Walraven
35ac867830 Avoid direct imports of node-fetch 2018-06-21 21:35:37 +02:00
Martijn Walraven
2d624c9b28 Remove direct dependency on node-fetch and add @types/ws 2018-06-21 21:28:31 +02:00
Renovate Bot
aedbd76cee chore(deps): update dependency @types/multer to v1.3.7 2018-06-21 19:26:32 +00:00
Evans Hauser
d1878703d3
Move Uploads to constructor and remove enhanceSchema (#1204)
* move uploads into server constructor

* remove enhanceSchema

* address feedback
2018-06-21 12:16:52 -07:00
Renovate Bot
b78a0f7731 chore(deps): update dependency @types/mocha to v5.2.3 2018-06-21 18:00:50 +00:00
Renovate Bot
e688cef36a chore(deps): update dependency @types/koa-router to v7.0.29 2018-06-21 15:16:52 +00:00
Martijn Walraven
71a403dfa3 Set cached response TTL based on max-age 2018-06-21 16:51:02 +02:00
Martijn Walraven
14247279ec Remove logFunction
We now support custom extensions, which have a much nicer API.
2018-06-21 16:05:48 +02:00
Jesse Rosenberger
22ee1d508e
chore(deps): update dependency meteor-theme-hexo to v1.0.15 2018-06-21 16:45:17 +03:00
Renovate Bot
b6f3e6f23e chore(deps): update dependency @types/chai to v4.1.4 2018-06-21 13:34:38 +00:00
Martijn Walraven
8914b135df Add error handling to RESTDataSource and extract apollo-server-errors
Because apollo-server-core depends on apollo-datasource-rest, we need to extract errors into their own package to avoid a circular dependency.
2018-06-21 15:28:14 +02:00
Evans Hauser
7c622aa2f5
hapi: tests, add types, and fix #1195 (#1211) 2018-06-20 16:34:42 -07:00