Evans Hauser
a7cd3a43e8
Apollo Server 2:Automatic Persisted Queries ( #1149 )
2018-06-11 15:44:20 -07:00
Evans Hauser
adfe69cb6a
core: display only first 200 characters of schema on gql error
2018-06-06 11:36:49 -07:00
Evans Hauser
b07b9e8e8b
core,express: export gql tag directly to align with client
2018-06-06 11:02:01 -07:00
Evans Hauser
1e70a446b2
Enable Apollo Server 2 to have async context + test ( #1129 )
...
* core: add test for context as async function
* core,express: add support and test of context as async function
2018-06-04 09:46:55 -07:00
David Glasser
836616bd04
Turn on noUnusedLocals and noUnusedParameters ( #1126 )
2018-06-01 15:16:16 -07:00
David Glasser
5e1b49bbc5
basic apollo-engine-reporting integration
2018-06-01 12:34:49 -07:00
David Glasser
66189657b3
Rename ApolloServer.request to graphQLServerOptionsForRequest
2018-05-31 00:14:59 -07: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
Evans Hauser
4609ee94a5
core: evaluate context per request and differ error until caught in runQuery
2018-05-30 16:02:48 -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
57328e2214
apollo-server-core: move http options under own key in listenOptions
2018-05-21 23:20:56 -07:00
Evans Hauser
23f5b76f10
apollo-server-core: ApolloError extends Error and implements GraphQLError
2018-05-21 15:41:36 -07:00
Evans Hauser
a3daf7d551
apollo-server-core: keep referrence to subscriptions server and clean it up on stop
2018-05-20 02:18:32 -07:00
Evans Hauser
858216c97a
apollo-server-core: move environment checking into the constructor to enable testing
2018-05-20 02:12:43 -07:00
Evans Hauser
973b096ea3
apollo-server-core: enableIntrospection -> introspection
2018-05-11 17:33:52 -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
5d279001ca
apollo-server-core: feedback from #979 to improve readability and spelling
2018-05-11 17:00:45 -07:00
Evans Hauser
db47867ccb
apollo-server-core: move subscriptions out of constructor into listen function
2018-05-11 15:54:24 -07:00
Evans Hauser
56955dc97a
apollo-server-core: remove extra Object assign, found by @justinanastos 🎉
2018-05-11 15:54:23 -07:00
Evans Hauser
012f37aed5
engine -> engineProxy in listen, fix engineLauncherOptions, and unrequired parameters optional ( #1051 )
...
engine -> engineProxy in listen, fix engineLauncherOptions, and make unrequired parameters optional
2018-05-11 15:54:22 -07:00
Evans Hauser
2781cc8831
apollo-server-core: remove unsued async from BaseServer's request function
2018-05-11 15:54:21 -07:00
Evans Hauser
5aeb36f3d7
apollo-server-core: allow creation of context to be asynchronous
2018-05-11 15:53:17 -07:00
Evans Hauser
e0332bb164
apollo-server-core: added formatApolloError arguments to subscription callback
2018-05-11 15:53:17 -07:00
Evans Hauser
2a510039ec
apollo-server-core: internalFormatError to formatApolloError
2018-05-11 15:53:16 -07:00
Evans Hauser
f6eece6294
apollo-server-core: move logging into separate file
2018-05-11 15:53:16 -07:00
Evans Hauser
ce7d72caab
apollo-server-core: add mocks
2018-05-11 15:53:15 -07:00
James Baxley
68dec79529
clean up and move pieces around
2018-05-11 15:53:14 -07:00