Commit graph

1587 commits

Author SHA1 Message Date
Prosper Otemuyiwa
9070a9673e
Merge pull request #1186 from amitport/patch-1
remove extra '/' from docs
2018-06-18 02:00:16 -04:00
Daniel Ferreira
f07afc17aa added missing 'new' keyword 2018-06-18 02:36:32 -03:00
Amit Portnoy
3cb2e41be3
remove extra '/' from docs
the url is incorrect: example.com//.well-known/apollo/server-health
2018-06-18 08:14:52 +03:00
Prosper Otemuyiwa
491997a105
Merge pull request #1185 from apollographql/fix-errors
Change  to  in new pattern of using apollo server 2
2018-06-17 15:02:00 -04:00
unicodeveloper
7c1f7a6f54 Change to in new pattern of using apollo server 2 2018-06-17 14:55:54 -04:00
Jesse Rosenberger
f4d1ac5111 docs: Change links away from contentless deployment index page.
This was still linked from the v2 getting started page.  While it will
eventually link to the "Deployment" guide index page where we'll offer
guides for other deployment options, that content is not written.

For now, we'll offer those getting statred to deploy with Heroku, which is
written!

Ref: https://twitter.com/jevakallio/status/1007915638919192577
cc (and thanks) to @jevakallio for pointing this out.
2018-06-16 13:55:07 +03:00
Evans Hauser
b6f88d59ef
express: remove console logs from data source test 2018-06-15 11:17:02 -07:00
Evans Hauser
cba05d9567
remove operation store module because of apq's 2018-06-15 11:16:37 -07:00
Evans Hauser
0eed62378f
docs: add install for rest data source 2018-06-15 10:26:24 -07:00
Jesse Rosenberger
d28982bddc
docs: Add version "2" back, which was lost in a merge.
This was lost in 639b104232.
2018-06-15 17:37:15 +03:00
Daniele Zurico
fdfb53220b docs: Correct typos in Features/Subscriptions. (#1178) 2018-06-15 16:06:10 +03:00
Evans Hauser
ff91ba93d4
docs: add subscriptions by @daniele-zurico into the index 2018-06-15 00:00:25 -07:00
Daniele Zurico
d4a38b8275 AS2: Docs for subscriptions (#1165)
* add doc for subscriptions

* apply few changes to the readme

* apply few changes to the readme

* add more informations in case req is null

* changed last sentence

* apply comments

* typo

* remove idea folder

* fix indentation

* fix typo

* subscriptions with middleware

* subscriptions with middleware

* subscriptions with middleware
2018-06-14 23:39:19 -07:00
Evans Hauser
1592c545dc
docs: change beta to release candidate 2018-06-14 23:37:36 -07:00
Evans Hauser
9588468875
v2.0.0-rc.0 2018-06-14 23:18:07 -07:00
Martijn Walraven
685d3399db Apollo Server 2.0 - Caching + RESTDataSource (#1163)
* Enable declarationMap in tsconfig.json

See http://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.html

* Add apollo-server-caching package and improve typings

* Remove superfluous test steps

* Add .npmignore to apollo-server-caching

* Add apollo-server-env and apollo-datasource-rest packages

* Fix broken imports

* Use prepublish instead of prepare

* cache is now passed to data sources from ApolloServer constructor

* fix Object.values to use the object passed in rather than this

* add initial datasource test

* docs: initial data source documentation

* docs: initial data source documentation

* compiles and documentation now highlights code in data-sources.md

* Some changes to the data source docs
2018-06-14 23:13:33 -07:00
Evans Hauser
439ec44135
core: add Scalar Upload with schema is made execuable 2018-06-14 15:58:23 -07:00
Evans Hauser
1f9f307d55
docs: initial engine migration guide 2018-06-14 13:24:56 -07:00
David Glasser
d006d4d83d v2.0.0-beta.11 2018-06-14 12:00:21 -07:00
David Glasser
46bb367f91 cloudflare package does not need to be private 2018-06-14 12:00:09 -07:00
David Glasser
3fccd43bae simplify upload enhanceSchema, rename to installSubscriptionHandlers
also export graphql-tools and graphql-subscriptions from apollo-server-core
2018-06-14 11:57:30 -07:00
David Glasser
1707967518 Specify full path in tsconfig imports
Emacs tide mode seems to require
this (https://github.com/ananthakumaran/tide/pull/238 is supposed to have fixed
it but it didn't work?)
2018-06-14 11:57:30 -07:00
David Glasser
afda13489b improve listen API with callbacks 2018-06-14 11:57:30 -07:00
Evans Hauser
95fe31dbb6 docs: server.listen to app.listen for express examples 2018-06-14 11:57:30 -07:00
Evans Hauser
7ded129726 docs: replace registerServer with applyMiddleware 2018-06-14 11:57:30 -07:00
Evans Hauser
327999174c move registerServer into class as applyMiddleware function 2018-06-14 11:57:30 -07:00
Evans Hauser
9d853f4be4 move ApolloServer tests into integration tests from core 2018-06-14 11:57:30 -07:00
Evans Hauser
304debf9ee errors insubscription server creation and non-async regsiterServer for express 2018-06-14 11:57:30 -07:00
Evans Hauser
54ced71cff initial implementation of createSubscriptionServer 2018-06-14 11:57:30 -07:00
David Glasser
01c7c37e3c start to refactor subscriptions 2018-06-14 11:57:30 -07:00
Jesse Rosenberger
559b21d83a
Restore comment from Revert "Test on Node 8 and 10 on Circle CI"
Since f0f75b183e93cc91d31255e7ffd60c1de5d4f16e, it seems important to
restore the reasoning for the usage of `yarn` to avoid confusion in the
future.  This comment was originally removed in 301e144d23.

This reverts the comment from that commit and further improves the clarity.

Ref: https://github.com/apollographql/apollo-server/commit/301e144d#r29319011
2018-06-14 12:06:09 +03:00
David Glasser
ddc589d996 v2.0.0-beta.10 2018-06-13 16:07:41 -07:00
David Glasser
e32fad66a2 Allow configuration of graphql-playground 2018-06-13 15:59:41 -07:00
David Glasser
eb0ae81cfa Update integration test suite to test ApolloServer
Fix some connect bugs.
2018-06-13 15:27:44 -07:00
Evans Hauser
e420094f3d
docs: remove old hapi migration and move images into same folder 2018-06-13 15:15:09 -07:00
Evans Hauser
e66f6db413
fix: support Node 6 (#1171) 2018-06-13 14:56:09 -07:00
David Glasser
2ff159d50c Don't export middleware from packages
We are going to tweak registerServer until there is no reason to prefer a
non-ApolloServer-associated middleware function over using it.
2018-06-13 14:10:34 -07:00
Evans Hauser
5e59605c1e
docs: remove GraphiQL and old migration guides 2018-06-13 14:02:49 -07:00
David Glasser
e4a6e873f8 Remove graphiql support
ApolloServer builds in graphql-playground rather than graphiql, so we no longer
provide middleware for serving GraphiQL.

If this turns out to be an unpopular choice, we can always add support for
graphiql instead of graphql-playground back in later.

We prefer graphql-playground because it allows you to enter HTTP request
headers, view query history, and explicitly supports graphql@0.13.
2018-06-13 14:00:51 -07: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
1fd3b216d0 Remove engineProxy support
We recommend the use of apollo-engine-reporting and the other built-in features
of AS 2.0 rather than engineProxy. You can still use the apollo-engine npm
module manually with AS 2.0, or stay on AS 1.0.
2018-06-13 12:32:05 -07:00
David Glasser
519b6fd056 v2.0.0-beta.9 2018-06-13 11:47:30 -07:00
Evans Hauser
0178840837
express, hapi: export ApolloServer 2018-06-13 11:21:16 -07:00
Evans Hauser
83c866e8d4
core: add graphql-tag as export 2018-06-12 23:13:04 -07:00
Evans Hauser
afcd1709f3
core, integrations: break apart coupling of introspection and gui enable 2018-06-12 23:11:06 -07:00
Evans Hauser
db8eba871f
v2.0.0-beta.8 2018-06-12 17:54:55 -07:00
Evans Hauser
ba31cf7a44
Integrations export their own ApolloServer (#1161)
* feat: ApolloServer is created and exported by all variants

* docs: add initial docs around exporting ApolloServer

* feat: export gql from integrations

* docs: change apollo-server examples to use express with registerServer

* server: remove registerExpressServer

* core, docs: comment functions, fix api reference, context creation more like middleware args

* docs: fix integrationed typo
2018-06-12 17:46:56 -07:00
David Glasser
df8e487368 v2.0.0-beta.7 2018-06-11 18:45:23 -07:00
David Glasser
dbfa57c95d dep on express (there is an import), other tweaks 2018-06-11 18:44:55 -07:00
David Glasser
3e93524ac3 v2.0.0-beta.6 2018-06-11 15:54:01 -07:00