Evans Hauser
8601919ad9
server,express,hapi: bump graphql-playground and express type versions
2018-06-06 12:03:21 -07:00
Evans Hauser
701a84de73
Merge pull request #1146 from apollographql/server-2.0/gql-tag
...
Apollo Server 2.0: use graphql-tag in apollo-server
2018-06-06 11:52:09 -07:00
Evans Hauser
2ba5da9a59
docs: using an existing schema added to migration guide
2018-06-06 11:42:25 -07:00
Evans Hauser
9e87f405ed
core: add changelog for gql-tag change
2018-06-06 11:36:49 -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
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
b07b9e8e8b
core,express: export gql tag directly to align with client
2018-06-06 11:02:01 -07:00
Renovate Bot
b8b267e1b3
chore(deps): update dependency sinon to v5.1.0
2018-06-06 08:29:45 +00:00
Renovate Bot
8e3e370c53
chore(deps): update dependency @types/express to v4.16.0
2018-06-05 07:30:52 +00:00
Evans Hauser
4c8fa03825
Merge pull request #1136 from apollographql/server-2.0/additional-docs
...
Apollo Server 2: Additional Docuementation
2018-06-04 14:50:12 -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
Evans Hauser
5079246bc4
apollo-server,core,hapi,express: bump package to newest beta.4
2018-06-04 10:16:54 -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
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
Renovate Bot
7d9a978683
chore(deps): update dependency @types/restify to v5.0.9
2018-06-02 11:17:30 +00:00
Renovate Bot
302902d80b
chore(deps): update dependency @types/mocha to v5.2.1
2018-06-02 09:27:42 +00:00
Renovate Bot
e57bf2a742
chore(deps): update dependency @types/koa to v2.0.46
2018-06-02 07:30:10 +00:00
David Glasser
5c65742a39
Factor out runQuery's use of logFunction into an extension ( #1128 )
...
This requires a slightly newer graphql-extensions beta which has more arguments
to requestDidStart.
Also make it ok to not pass logFunction to formatApolloErrors, and make sure
custom fieldResolvers continue to work with extensions (by upgrading the
dependency and fixing a logic bug).
The custom fieldResolvers fix means that we now unconditionally put the
extension stack on the GraphQL context, which means that the context can no
longer be (say) a string. I changed a test that expected string contexts to
work. You couldn't use a string for a context when using extensions before, so
this isn't that big of a change.
2018-06-01 21:16:25 -07:00
David Glasser
836616bd04
Turn on noUnusedLocals and noUnusedParameters ( #1126 )
2018-06-01 15:16:16 -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
Evans Hauser
639b104232
Merge pull request #1063 from apollographql/refactor-2.0
...
Apollo Server 2.0
2018-06-01 13:59:53 -07: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
haoxin
6e80c376fe
koa: remove dist names from readme example ( #1122 )
...
Since koa@2 has been published for a long time, and almost all the middlewares migrated to koa@2.
It's no need to add extra dist names for koa and koa middlewares.
2018-06-01 13:34:41 -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
David Glasser
1a305eb5a8
Merge pull request #1105 from apollographql/glasser/extensions-0.1.0
...
Allow user-defined GraphQLExtensions, add apollo-engine-reporting
2018-06-01 13:07:26 -07:00
Evans Hauser
4405405321
hapi,express: fix graphql playground subscriptitionPath argument for typing
2018-06-01 12:34:49 -07:00
Evans Hauser
ec7394d1b3
apollo-server,core,hapi,express: bump package to newest beta
2018-06-01 12:34:49 -07:00
David Glasser
5e1b49bbc5
basic apollo-engine-reporting integration
2018-06-01 12:34:49 -07:00
Renovate Bot
dedd0f4b86
chore(deps): update dependency @types/node to v9.6.20
2018-06-01 11:00:00 +00:00
Renovate Bot
ef8b119ede
chore(deps): update dependency @types/aws-lambda to v8.10.6
2018-06-01 07:56:13 +00: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
Renovate Bot
8d73bd027b
chore(deps): update dependency typescript to v2.8.4
2018-05-31 16:23:37 +00:00
Renovate Bot
45c5874312
chore(deps): update dependency hapi to v17.5.1
2018-05-31 14:46:20 +00:00
Renovate Bot
91a8712985
chore(deps): update dependency @types/node to v9.6.19
2018-05-31 12:25:20 +00: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
Sebastian
2acf5654c3
Added an option to support additional extensions
...
(Originally #934 , tweaked by @glasser.)
2018-05-31 00:14:59 -07:00
Evans Hauser
38c8713f4d
Merge pull request #1113 from apollographql/server-2.0/context-fix
...
AS2: Fix handling errors from context constructor and merged schemas
2018-05-30 22:57:36 -07:00
Evans Hauser
63d0f72115
core: error resurfacing for merged schemas that hide errors in a CombineErrors
2018-05-30 22:40:27 -07:00
Evans Hauser
c5ba902277
express: add fallback for file uploads middleware if not enabled
2018-05-30 22:38:37 -07:00
Evans Hauser
7cad97e419
core: add tests error handling in resolvers with production env
2018-05-30 16:42:26 -07:00
Evans Hauser
7d17f1f379
core: made name non-eunumerable in ApolloError and removed extra code in tests
2018-05-30 16:41:42 -07:00
Evans Hauser
9e07cb3405
core: add test around throwing Authentication error inside of context creation
2018-05-30 16:05:25 -07:00