Commit graph

76 commits

Author SHA1 Message Date
Sashko Stubailo
5d595023dd Fix trailing comma 2016-10-12 16:20:43 -07:00
weipeng
778daed2a6 fix bugs for passHeader for Koa 2016-10-12 16:19:40 -07:00
Weipeng Kuang
76d0f540fd Update hapiApollo
fix bugs that did not have passHeader in renderGraphiQl
2016-10-12 16:19:40 -07:00
Sashko Stubailo
a06559b608 Fix build 2016-10-10 10:38:04 -07:00
Bojan Hribernik
5997b48653 Fix KoaApolloOptionsFunction interface 2016-09-23 00:04:04 +02:00
Bojan Hribernik
b4b39534d8 Pass ctx instead of ctx.request to koa options function 2016-09-21 21:21:09 +02:00
Nick Nance
ef766762f3 rename Hapi plugins for more consistence with other integrations (#140) 2016-09-14 20:35:32 -07:00
Nicolás López
be0f5ec38d Pass custom header in GraphiQL (#133)
* Pass meteor login token in Authorization header

* Use passHeader method

* update changelog

* Fix lint rules
2016-09-12 15:07:35 -07:00
Nick Nance
f4546e7654 Output stack trace for errors in debug mode (#137)
* add debug option to runQuery

* add test for integrations

* update changelog

* fix lint error
2016-09-12 15:02:41 -07:00
Nick Nance
d0ed1faa0f Improve log function (#136)
* improve log function

* fix test cases

* update changelog

* add PR to changelog
2016-09-10 15:28:38 -07:00
Nick Nance
00394c6a23 Handle variable parse error (#131)
* error handling for parsing query variables
* update changelog
2016-09-09 20:30:27 -05:00
Nick Nance
fe9564d2cd Camelcase hapi (#132)
* camelcase hapi
* update changelog
2016-09-09 20:22:13 -05:00
Nick Nance
40e8b55594 HAPI Integration Refactor (#127)
* convert hapi plugin classes to functions
* create Hapi plugin options
* improve error handling
* working batch query
* add route config options
* improve HAPIGraphiQL api
* update documentation
2016-09-09 07:49:23 -05:00
Jonas Helfer
7b42c335ea Revert "Fix query batching for single queries for hapi integration. (#123)"
This reverts commit 64cd8069ac.
2016-09-06 12:05:27 -07:00
David Alan Hjelle
64cd8069ac Fix query batching for single queries for hapi integration. (#123) 2016-09-02 13:55:28 -07:00
Jonas Helfer
e62de92ede fix: unpin port number for Koa tests (#89) 2016-08-08 15:22:58 -07:00
Jonas Helfer
5b1575db77 Merge pull request #68 from apollostack/more-tests
More tests to increase test coverage
2016-07-29 13:59:48 -07:00
Jonas Helfer
c82201ae2a fix typo 2016-07-29 13:45:32 -07:00
Jonas Helfer
c697924f98 remove unused lines in Koa 405 test 2016-07-29 13:24:00 -07:00
Jonas Helfer
333f5d1e23 test that only POST requests are allowed 2016-07-29 12:47:27 -07:00
Jonas Helfer
5faab1958b test errors when express and koa are called with wrong args 2016-07-29 12:37:02 -07:00
Jonas Helfer
b2279fd9f0 test validationRules option 2016-07-29 11:51:35 -07:00
Jonas Helfer
eb9926746a test formatError option 2016-07-29 11:42:05 -07:00
Jonas Helfer
cb94d5f8b4 add test for rootValue 2016-07-29 11:36:22 -07:00
Ian MacLeod
790fd30b5d Expose the Express response object to the options callback (#49)
For example, it's necessary to have the response object for mutations that set/clear cookies
2016-07-29 10:20:29 -07:00
Jonas Helfer
1f2d6ca821 Add support for connect (#58)
* add support for connect

* export apolloConnect and graphiqlConnect

* update changelog
2016-07-28 20:19:39 -07:00
Bojan Hribernik
bc587b77c2 Move destroyApp() call into aterEach() mocha hook 2016-07-28 23:15:30 +02:00
Bojan Hribernik
5fa12dbdb1 Fix lint errors and remove unnecessary tests 2016-07-28 22:56:34 +02:00
Bojan Hribernik
978270f9fa Apollo koa integration 2016-07-28 20:05:05 +02:00
nnance
622a46a02e fix integration tests 2016-07-18 21:17:52 -07:00
nnance
76379b2dda fix bad merge 2016-07-18 21:13:57 -07:00
nnance
fb3d07cbfa Merge branch 'apollo-hapi' of github.com:apollostack/apollo-server into apollo-hapi 2016-07-18 21:06:30 -07:00
nnance
e03f64db72 Merge branch 'master' of github.com:apollostack/apollo-server into apollo-hapi
# Conflicts:
#	src/integrations/integrations.test.ts
2016-07-18 21:06:00 -07:00
Nick Nance
9667b5f971 add support for context 2016-07-17 17:55:21 -07:00
Nick Nance
6633e52265 add context test 2016-07-17 17:51:41 -07:00
nnance
f9bc7dec8d refactored server handler 2016-07-16 07:31:14 -07:00
nnance
6b6fcba2d2 all hapi tests passing 2016-07-16 07:12:08 -07:00
Nick Nance
9cb004c5e3 add support for format params function 2016-07-07 22:54:46 -07:00
Nick Nance
9b20769267 add check for missing post body 2016-07-07 22:47:05 -07:00
Nick Nance
a19b9830b4 added support for options as a promise 2016-07-07 22:36:44 -07:00
Nick Nance
8a3e2fdf4a allow each integration suite to be ran separately 2016-07-07 08:46:10 -07:00
Nick Nance
53cc130e51 some working integration tests 2016-07-07 06:35:48 -07:00
Nick Nance
05347ffe03 add test suite integration parameter 2016-07-07 06:35:20 -07:00
Nick Nance
033495ed1b Merge branch 'master' of github.com:apollostack/apollo-server into apollo-hapi
# Conflicts:
#	src/index.ts
2016-07-06 22:35:25 -07:00
Nick Nance
ba9a9a837d rename api (#44)
* rename api

* change express api name
2016-07-06 11:45:20 -07:00
Nick Nance
3a39e96f20 improve hapi api 2016-07-06 07:05:59 -07:00
Nick Nance
e1b1c9b1a2 initial working version of hapi 2016-07-05 17:25:18 -07:00
Jonas Helfer
b95ec16aaf lint 2016-07-05 14:19:55 -07:00
Jonas Helfer
68bba72ff8 add try/catch and test for rejected options 2016-07-05 14:19:14 -07:00
Nick Nance
c7a9642ee4 make integration tests completely generic 2016-07-04 22:04:31 -07:00