Commit graph

102 commits

Author SHA1 Message Date
Remy Korrelboom
bacdeae80d feat(fastify) Apollo Fastify server integration resolve #626 2019-01-02 14:24:47 +01:00
Hugh Willson
825d448765 Set GH CODEOWNERS and update the README (#2034)
Clearly identify repo maintainers.
2018-11-28 15:18:48 +02:00
Jesse Rosenberger
492fcf94e6
Update README.md 2018-11-22 16:18:03 +02:00
Monday Chen
10dfda2092 Fix connect integration sample code (#1973) 2018-11-16 13:35:42 +02:00
Leonid Buneev
5b64cf9160 apollo-server-azure-function v2 implementation. (#1753)
Closes #1752.
2018-11-06 11:28:25 -08:00
Wade Deng
f2b345918a fix typo in README of Koa example (#1876)
* fix typo in README of Koa js example

* docs: update changelog pr link

* Update CHANGELOG.md
2018-10-25 11:06:55 +03:00
Victor Hugo Miranda Pinto
b0579982d0 Add Koa to the list of Apollo Server integrations (#1810) 2018-10-15 10:07:31 +03:00
Jovi De Croock
5be51b5a72 docs: add koa example since it is in the github title (#1780)
* docs: add koa example since it is in the github title

* fix: correct mistake

* Revert "fix: correct mistake"

This reverts commit 1de53f7e2b36c9ac7364a7f291f79bef4f77d777.

* fix: correct mistake

* Update README.md examples.

Follows-up on #1780 by fixing mismatching `port`s in the Koa example and switching other examples to be more DRY with regards to the `port` values.
2018-10-10 16:26:23 +03:00
cahnory
4d67c1c1fc document the way to use ApolloServer with a GraphQLSchema object (#1502)
* document the way to use ApolloServer with a GraphQLSchema object

* Add recommendation to use SDL
2018-08-14 10:33:40 -07:00
Martijn Walraven
a4f0336ea7 Fix Circle CI badge in README 2018-06-26 16:47:33 +02:00
Evans Hauser
846579db33
update README's and remove docs for registerServer (fixes #1216) 2018-06-22 17:51:56 -07: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
David Glasser
40f9a4982f Remove packages for frameworks that don't yet support 2.0
Previously, we were planning to offer two kinds of APIs in "Apollo Server 2":
middleware functions just like in 1.0, and the new ApolloServer class.  We have
not yet implemented ApolloServer for all of our supported web frameworks, so
this meant that the 2.0 version of modules such as apollo-server-koa (which does
not yet have an ApolloServer class) offered very little benefits over
apollo-server-koa@1.0 (as most of the benefits of 2.0 come from ApolloServer).

This is confusing. We are going to improve the current registerServer API so
that there's no real benefit to using a separately-exported middleware directly
rather than creating an ApolloServer and applying it to your web framework. So
the AS 2.0 API will just be ApolloServer.  This means it doesn't make sense for
us to publish 2.x versions of the packages that don't yet support this API.

So this commit removes support for the following web frameworks: Adonis, Azure
Functions, Koa, Lambda, Micro, and Restify. (We leave in place Express, Hapi,
and Cloudflare workers.)

This isn't because we don't like these frameworks and don't want them to work
with Apollo Server 2.0!  We would love to see each package resurrected and an
ApolloServer implementation built, either during this current 2.x beta phase or
after the official 2.0 release. Deleting these packages for now makes it more
clear which frameworks support 2.0 and which don't, rather than existing in a
state where apollo-server-express@2 has ApolloServer and apollo-server-koa@2
does not.
2018-06-13 13:45:10 -07:00
David Glasser
8b6b0161d1
Be consistent about where GraphQL queries are parsed
runQuery currently takes a `query` argument that is either a string or a
DocumentNode. This means that it's possible to accidentally support syntax we
don't mean to. For example, if you happen to send a JSON-serialized DocumentNode
over the wire, we'll happily execute that, and you'll believe you're using
GraphQL even though you really aren't --- until you try to use some other
GraphQL tool that expects to see the GraphQL query language rather than
graphql-js ASTs.

Additionally, GET requests parse their queries in runHttpQuery rather than
runQuery, leading to inconsistent error handling semantics on parse failures.

Simplify the runQuery API (which is technically exported though intended to be
mostly internal) to take in either a parsedQuery or a queryString argument. The
main use case for knowing about these parameters is if you're using formatParams
with OperationStore; its docs and tests have been updated to reflect this.

Stop parsing queries in runHttpQuery; instead, ensure we throw the right error
for mutations-over-GET by passing the error to throw into runQuery.

Stop accidentally supporting graphql-js ASTs on the wire --- but throw an
informative error when you do so.

This backwards-incompatible change is intended for apollo-server-core 2.0.
2018-05-24 15:47:09 -07:00
David Glasser
d4751e2f04 Update status badges for Circle correctly 2018-03-28 14:03:32 -07:00
David Glasser
80bce88b5b Update status badges for Circle 2018-03-28 14:01:46 -07:00
Jesse Rosenberger
7b0999f636
Remove trailing space on .md file, to satisfy prettier.
Originally introduced by apollographql/apollo-server#740.

Ref: https://github.com/apollographql/apollo-server/pull/740
2018-03-12 19:45:19 +02:00
Martin d'Allens
5fb6bf7215 Add missing options to README.md (#740) 2018-03-12 18:24:48 +02: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
Sashko Stubailo
62158acbd1
Docs improvements round 2 (#693)
* Add 1.0 migration article, belated

* Add tracing + cache control to sidebar

* Suggest graphql-tools

* Link to graphql-tools in README

* Wording

* Try a new title

* Add example to top
2017-12-11 23:44:32 -08:00
Sashko Stubailo
93f052352c
Docs improvements (#692)
* Freshen up title page

* Improve homepage further

* File a PR!

* Try adding express README to sidebar

* Add READMEs to docs

* Add example page, overhaul setup

* More stuff

* Fix all old URLs

* Eliminate all mentions of graphql-server

* Fix azure functions shit
2017-12-11 23:11:11 -08:00
Sashko Stubailo
7b6efffd8b Add docs link 2017-12-11 21:14:32 -08:00
Sashko Stubailo
212bc504ba Shorten README title 2017-12-11 21:13:35 -08:00
Nimish Gupta
3471a69542 Correct hapi example (#690) 2017-12-09 14:00:57 +01: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
Evgeni Razumov
10bf6433aa Add support for Adonis framework (#676) 2017-12-04 10:44:17 +01:00
Evans Hauser
31fef1a421 add launchpad to README as example to look at (#665) 2017-11-17 21:40:43 -08:00
Peter Wagner
f65b621ed9 apollo-server-express: document query middleware
Fixes https://github.com/apollographql/apollo-server/issues/664
Tested in 83fd88ce2f
2017-11-10 04:37:24 +01:00
Ezra Lalonde
3e51decf82 Update README with Hapi debug
Update README.md
2017-10-16 16:55:21 +02:00
Kevin Suttle
2d92303332 Update AWS Lambda supported Node versions (#577)
AWS Lambda doc link included
2017-10-02 14:25:58 +02:00
Josh Balfour
1410770cb3 docs: add graphiql usage to express example code (#581) 2017-09-25 16:44:42 -07:00
Sashko Stubailo
e084c3c49f Update README.md 2017-09-06 15:49:21 -07:00
Sashko Stubailo
f1dbe28ad4 Update README.md 2017-09-06 15:49:10 -07:00
Ulrik Strid
814db561fa Azure Functions bindings (#503) 2017-08-15 09:59:29 +02:00
Martijn Walraven
19e365f044 Add tracing support (#490) 2017-08-09 16:57:17 +02:00
p4bloch
7a4c9e3e75 Remove unnecessary route in Koa example (#493)
It is my understanding that `POST` to `/graphiql` will never occur since GraphiQL will talk to `/graphql` directly. Since this is not needed we may want to remove it to avoid confusion.
2017-08-09 13:34:56 +02:00
Yucun
d102a88067 Update restify lib (#475) 2017-08-09 13:26:26 +02:00
Mikhail Novikov
10dd6cabc9 Merge branch 'master' into update-koa-example 2017-07-24 13:38:04 +03:00
Sashko Stubailo
a076fea894 Merge branch 'master' into update-koa-example 2017-07-23 22:55:28 -07:00
Vlad Shcherbin
943120269c Use body parser only for post requests in koa 2017-07-23 16:41:29 +03:00
Chandan Rai
27da6eaad7 corrected typo 2017-07-22 09:32:10 +05:30
Trevor Brindle
0edae930bb add graphiqlKoa example to README 2017-07-21 12:27:38 -04:00
Martijn Walraven
f4935f6423 Update README 2017-07-18 11:20:33 -07:00
Martijn Walraven
0facb2ba1f Update README 2017-07-18 11:17:57 -07:00
Martijn Walraven
e3e1aa7b71 Update README 2017-07-18 11:09:28 -07:00
Martijn Walraven
b81b72d445 Update README 2017-07-18 11:07:31 -07:00
Martijn Walraven
300c0cd12b Rename packages from graphql-server- to apollo-server- (#465) 2017-07-17 16:29:40 -07:00
Tim Neutkens
d73f3ee579 Add missing https 2017-06-27 10:31:24 -07:00
Tim Neutkens
2169df359a Uppercase M for Micro 2017-06-27 10:31:24 -07:00
Tim Neutkens
3cd6f390f4 Use right naming for ZEIT 2017-06-27 10:31:24 -07:00