Evans Hauser
7c622aa2f5
hapi: tests, add types, and fix #1195 ( #1211 )
2018-06-20 16:34:42 -07:00
Clarence Ngoh
70a0fad754
export UserInputError from express and hapi integrations ( #1206 ) ( #1208 )
2018-06-20 16:24:32 -07:00
Evans Hauser
9af856c2c8
Typescript Improvements and esModuleInterop fix ( #1210 )
...
* add string input to gql tag
* remove esModuleInterop, tested locally
* change IMPORT_FUNCTION to something real
* fix the rest of the tests
2018-06-20 16:21:50 -07:00
David Glasser
3fccd43bae
simplify upload enhanceSchema, rename to installSubscriptionHandlers
...
also export graphql-tools and graphql-subscriptions from apollo-server-core
2018-06-14 11:57:30 -07:00
Evans Hauser
327999174c
move registerServer into class as applyMiddleware function
2018-06-14 11:57:30 -07:00
Evans Hauser
9d853f4be4
move ApolloServer tests into integration tests from core
2018-06-14 11:57:30 -07:00
Evans Hauser
54ced71cff
initial implementation of createSubscriptionServer
2018-06-14 11:57:30 -07:00
David Glasser
e32fad66a2
Allow configuration of graphql-playground
2018-06-13 15:59:41 -07:00
David Glasser
eb0ae81cfa
Update integration test suite to test ApolloServer
...
Fix some connect bugs.
2018-06-13 15:27:44 -07:00
David Glasser
2ff159d50c
Don't export middleware from packages
...
We are going to tweak registerServer until there is no reason to prefer a
non-ApolloServer-associated middleware function over using it.
2018-06-13 14:10:34 -07:00
David Glasser
e4a6e873f8
Remove graphiql support
...
ApolloServer builds in graphql-playground rather than graphiql, so we no longer
provide middleware for serving GraphiQL.
If this turns out to be an unpopular choice, we can always add support for
graphiql instead of graphql-playground back in later.
We prefer graphql-playground because it allows you to enter HTTP request
headers, view query history, and explicitly supports graphql@0.13 .
2018-06-13 14:00:51 -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
0178840837
express, hapi: export ApolloServer
2018-06-13 11:21:16 -07:00
Evans Hauser
afcd1709f3
core, integrations: break apart coupling of introspection and gui enable
2018-06-12 23:11:06 -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
Martijn Walraven
e4164c8892
Enable esModuleInterop and fix imports
...
See https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html
2018-06-11 14:25:59 +02:00
David Glasser
836616bd04
Turn on noUnusedLocals and noUnusedParameters ( #1126 )
2018-06-01 15:16:16 -07:00
Evans Hauser
4405405321
hapi,express: fix graphql playground subscriptitionPath argument for typing
2018-06-01 12:34:49 -07:00
David Glasser
66189657b3
Rename ApolloServer.request to graphQLServerOptionsForRequest
2018-05-31 00:14:59 -07:00
Evans Hauser
da316908d2
runQuery accepts Request object that variants create ( #1108 )
...
* core: runQuery accepts Request object that integrations create
* core: add changelog for Requst in runQuery
* adonis: correct request object passed to runQuery
* core: change convertHttpMessageToRequest to convertNodeHttpToRequest
2018-05-29 21:37:38 -07:00
Evans Hauser
5412885cc0
apollo-server 2: uploads as schema enhancement fulfilled in registerServer ( #1071 )
...
* apollo-server-core: add file upload hooks and configuration
* apollo-server-core: make requestOptions and fileUploadsConfig public fields in ApolloServerBase
* apollo-server-express: initial fileuploads middleware
* apollo-server-hapi: initial file uploads middleware
* core: remove fileuploads from constructor and add merge capabilities
* express: add fileuploads to registerServer and single test
* hapi: add fileuploads schema merge to registerServer
* express: add check for EPIPE and ignore it due to upload server issue
* core: add scalar Upload to server construction
2018-05-29 15:58:52 -07:00
Evans Hauser
43d545f8ab
apollo-server-core: add request object to runHttpQuery for access to headers ( #1096 )
2018-05-24 15:43:17 -07:00
Evans Hauser
1f784636d9
apollo-server: move health check into variant's registerServer call
2018-05-22 21:58:37 -07:00
Evans Hauser
69be8c8429
apollo-server-hapi: add cors option to registerServer ( #1085 )
2018-05-22 21:25:52 -07:00
Evans Hauser
f04b76f809
apollo-server-hapi: add options parameter to create a server ( #1082 )
2018-05-22 10:08:15 -07:00
Evans Hauser
0e4848d5e1
apollo-server: subscriptions options condensed to on option and ensure subscriptions path is set
2018-05-11 17:30:52 -07:00
Evans Hauser
ee6994b708
apollo-server-hapi: remove subscriptions boolean from register options and check subscriptionsEnabled
2018-05-11 15:54:25 -07:00
Evans Hauser
6b80ac96a1
apollo-server-hapi: fix graphql gui request, bind server listen, and check for autoListen: false
2018-05-11 15:54:25 -07:00
Evans Hauser
98ca26a303
apollo-server-hapi: initial implementation of apollo-server base class
2018-05-11 15:54:24 -07:00
Laurin Quast
df51fd90da
Setup prettier ( #724 )
...
* Setup prettier and precommit hooks
* Format code with prettier
* Use husky because it works...
* Move prettier config to .prettierrc file
* Implement fixing markdown file formatting when running lint-fix script
* Format markdown files
* Add .json file formatting
* Fixes json file formatting
* Add pretteir linting step
* Remove tslint
* Use gitignore for prettier
* Fix linting errors
* Ignore submodule folder
2018-01-08 15:08:01 -08:00
Alessandro Segala
037c13e5f3
Update to Hapi 17 ( #687 )
...
Note: TS typings for Hapi 17 are not available yet, so the types packages have been temporarily removed
2017-12-08 09:04:12 +01:00
Robin van der Vleuten
c1e34ed190
Added vhost option for Hapi
2017-10-16 16:48:04 +02:00
Martijn Walraven
300c0cd12b
Rename packages from graphql-server- to apollo-server- ( #465 )
2017-07-17 16:29:40 -07:00