Commit graph

119 commits

Author SHA1 Message Date
Jesse Rosenberger
628a5c88fa
Use the README.md from packages/apollo-server as the monorepo root README.md. 2019-02-26 16:17:29 +02:00
Jesse Rosenberger
a6fca66da2
README: Update headline for the repository. 2019-02-26 12:16:04 +02:00
Jesse Rosenberger
19a719af57
README: Add "Experimental" flag to Cloudflare workers. 2019-02-26 12:15:48 +02:00
Jesse Rosenberger
0f2e9d84b2
Punctuate the bullet-points as if they were sentences (they are!). 2019-02-26 12:14:33 +02:00
Jesse Rosenberger
5186342a4e
Update README.md to add back Cloudflare. 2019-02-26 11:54:25 +02:00
Jesse Rosenberger
251a7bb4dd
Update README.md "Development" section. 2019-02-26 11:47:02 +02:00
Jesse Rosenberger
8378da44ef
Update README.md 2019-02-26 11:37:26 +02:00
Jesse Rosenberger
211a0f4b78
Change main heading into H2 in preparation for logo. 2019-02-26 11:18:57 +02:00
Jesse Rosenberger
7e506b8123
Improve the documentation portion of the README.md.
Let's start with the more important _Getting started_ information, then
point the users to the documentation.
2019-02-26 11:18:57 +02:00
Jesse Rosenberger
09b4052bf2
Correct the "Context" section of the README.md.
This seems to have been quite dated!
2019-02-26 11:18:56 +02:00
Jesse Rosenberger
33885db0b9
Improve and cleanup the README.md, removing duplicated examples.
First, the getting started example was incorrect and instructed users to
install the wrong package.

Furthermore, each integration example was duplicated on its individual
package `README.md` and the verbosity of this `README.md` (which is for the
entire monorepo) makes it unclear where to start.

This change points those who desire the integration approach to the specific
page which has more information about those integrations (and mostly the
same content in terms of examples which are listed here, albeit with subtle
variations.)
2019-02-26 11:18:55 +02:00
Jesse Rosenberger
08ddf26cfe
Fix markdown headings to more properly group sections. 2019-02-26 11:18:53 +02:00
Jesse Rosenberger
ff4d6cc378
Pluck the "Context" section from the middle of the "Integrations".
This looks like it's been buried in the README.md after several rounds of
adding new integrations.  This moves it back out on its own.
2019-02-26 11:18:53 +02:00
Jesse Rosenberger
a7597913d2
Remove unnecessary --save flags from npm install commands.
While it used to be required to pass the `--save` flag in order to actually
write the dependency to the project's `package.json` file, this is no longer
the case in recent versions of npm.
2019-02-26 11:18:52 +02:00
Jesse Rosenberger
e727a252fe
Replace Slack shields in project README.mds with Spectrum shields. (#2345)
As we're moving the community from Slack to Spectrum, its time to update
these shields from our project README files (which show on npm and in
GitHub) to reflect the new home for conversation.

If you haven't already joined the new Apollo community on Spectrum.chat,
visit https://spectrum.chat/apollo/ to join the discussion!

For more details on the move, checkout the Apollo blog post by @hwillson:

https://blog.apollographql.com/goodbye-slack-hello-spectrum-8fa6b979645b
2019-02-20 17:55:16 +02:00
Remy Korrelboom
482cdad6fa feat(fastify) Implement the fastify createHandler as a synchronous method #626 2019-01-02 14:24:49 +01:00
Remy Korrelboom
fb023a5d4c feat(fastify) Update README's with fastify createHandler interface #626 2019-01-02 14:24:48 +01:00
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