Commit graph

2453 commits

Author SHA1 Message Date
Hugh Willson
63969a296c Remove labels from GH templates since we're disabling Apollo Bot (#1988)
Removing all mentions of labelling from this repos custom issue/PR templates (since we're no longer using Apollo Bot).
2018-11-17 15:29:16 +02:00
renovate[bot]
059db8e00f
chore(deps): update dependency lint-staged to v7.3.0 (#1985) 2018-11-17 07:16:06 +00:00
Peggy Rayzis
22e2f9b5b9
Merge pull request #1984 from apollographql/abernix/maintain-parent-argument
Consistently use `parent`, rather than `root`, as first resolver argument.
2018-11-16 14:16:18 -05:00
Jesse Rosenberger
034383f491
Consistently use parent, rather than root, as first resolver argument.
In an effort to maintain consistency and semantically correct meaning,
this changes (only in documentation and internal Apollo Server tests) the
name of the first argument in resolver signatures to use `parent` rather
than `root`.

While `root` certainly makes sense when the resolver is belonging to the
root `Query` or `Mutation` type, once nested field resolvers begin getting
called, the more semantically correct term would seem to be `parent`.

Since `parent` still makes sense at the root level, and since resolvers
frequently get copied and pasted into more deeply-nested positions, putting
this pattern in place for apps which are just beginning might just help
someone more clearly understand the relationship in the future — without
incorrectly thinking that a nested resolver is accessing the root of the
graph, rather than the parent.
2018-11-16 20:37:26 +02:00
Monday Chen
10dfda2092 Fix connect integration sample code (#1973) 2018-11-16 13:35:42 +02:00
renovate[bot]
9d17ae3e1b chore(deps): update dependency apollo-link-persisted-queries to v0.2.2 (#1979)
This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| apollo-link-persisted-queries | devDependencies | patch | `0.2.1` -> `0.2.2` | [source](https://renovatebot.com/gh/apollographql/apollo-link-persisted-queries) |

---

### Release Notes

<details>
<summary>apollographql/apollo-link-persisted-queries</summary>

### [`v0.2.2`](659e361551...v0.2.2)

[Compare Source](659e361551...v0.2.2)

</details>

---

### Renovate configuration

📅 **Schedule**: "after 6pm every weekday,before 5am every weekday" in timezone America/Los_Angeles.

🚦 **Automerge**: Enabled.

♻️ **Rebasing**: Whenever PR is stale, or if you modify the PR title to begin with "`rebase!`".

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

This PR has been generated by [Renovate Bot](https://renovatebot.com/gh/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#apollographql/apollo-server).
2018-11-16 13:34:48 +02:00
Steve Suh
5abb65f186 Example code snippet does not work (#1735)
* Example code snippet does not work

for the context it needs to return a connection.context and not a {}.

* Include not about what connection contains
2018-11-16 13:33:02 +02:00
limerick
94f10eb68f fix: Avoid GraphQL Playground default assignment. (#1578)
Due to a number of other assignments within `createPlaygroundOptions`, the default is still maintained and the `playground` configuration parameter should be entirely optional.
2018-11-16 12:22:57 +02:00
Jesse Rosenberger
a8189556fd
Update Renovate Configuration: Use shared base configuration. (#1981)
This updates `renovate.json` to use a shared, base configuration rather than repeating the same defaults across multiple repositories.

That base configuration lives at https://github.com/apollographql/renovate-config-apollo-open-source and is published to npm as `renovate-config-apollo-open-source` (https://npm.im/renovate-config-apollo-open-source).  It is referenced here by its short name `apollo-open-source`.

For more information on sharable Renovate config presets, see https://renovatebot.com/docs/config-presets/.
2018-11-16 11:02:05 +02:00
Jesse Rosenberger
1439ab13d4
Update Renovate Configuration: Remove ineffective limitation. (#1980)
This updates the `renovate.json` to remove a version pinning of `lint-staged` which clearly didn't work since the current version of `lint-staged` is newer than `v7`.
2018-11-16 09:56:01 +02:00
renovate[bot]
a5f8e3dbb9
chore(deps): update dependency @types/node to v10.12.9 (#1978) 2018-11-16 07:35:07 +00:00
renovate[bot]
546ddb649a
chore(deps): update dependency @types/node-fetch to v2.1.3 (#1972) 2018-11-15 20:05:26 +00:00
Peggy Rayzis
50a559ebf1
Merge pull request #1967 from apollographql/platform-cleanup
Move relevant best practices guides into server docs
2018-11-15 10:22:44 -05:00
Peggy Rayzis
8e2b999e2c
Merge branch 'master' into platform-cleanup 2018-11-15 10:21:52 -05:00
Jesse Rosenberger
c9ed4d9d2e
Apply suggestions from code review
Co-Authored-By: peggyrayzis <peggyrayzis@gmail.com>
2018-11-15 10:17:59 -05:00
Jesse Rosenberger
89c20bcc16
Add Netlify _redirects file specifically for test-utils → testing. 2018-11-15 13:12:32 +02:00
Jesse Rosenberger
3cf2d55e07
Bump generated hexo version (not hexo itself). 2018-11-15 13:12:20 +02:00
Jesse Rosenberger
05331d9a94
Update hexo-versioned-netlify-redirects to latest version.
To support having a source `_redirects` file on disk, in addition to
supporting the generated version redirects.
2018-11-15 13:11:30 +02:00
renovate[bot]
793a44077e
chore(deps): update dependency @types/koa-router to v7.0.34 (#1970) 2018-11-15 07:38:54 +00:00
renovate[bot]
57b53b93a1
chore(deps): update dependency @types/node to v10.12.8 (#1968) 2018-11-15 07:35:01 +00:00
Peggy Rayzis
6f75a473ec Add schema design guide content to unions and interfaces 2018-11-14 20:27:13 -05:00
Peggy Rayzis
7b5fa198c9 Add schema design guide content to schema essentials 2018-11-14 20:26:51 -05:00
Peggy Rayzis
d19ec3ec65 Remove related guides and outdated redirects 2018-11-14 20:26:10 -05:00
Peggy Rayzis
0ec58323e0 Add auth guide, rename testing guide 2018-11-14 20:25:38 -05:00
Peggy Rayzis
1b3e75dcbe Delete old best practices articles 2018-11-14 20:22:19 -05:00
renovate[bot]
08d9af4cce chore(deps): update dependency @types/node to v10.12.7 (#1961)
This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| @&#8203;types/node | devDependencies | patch | `10.12.6` -> `10.12.7` | [source](https://renovatebot.com/gh/DefinitelyTyped/DefinitelyTyped) |

---

### Renovate configuration

📅 **Schedule**: "after 6pm every weekday,before 8am every weekday" in timezone America/Los_Angeles.

🚦 **Automerge**: Enabled.

♻️ **Rebasing**: Whenever PR is stale, or if you modify the PR title to begin with "`rebase!`".

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

This PR has been generated by [Renovate Bot](https://renovatebot.com/gh/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#apollographql/apollo-server).
2018-11-14 16:52:37 +02:00
renovate[bot]
9b86ef4a93 chore(deps): update dependency hexo-prism-plus to v1.1.0 (#1962) 2018-11-14 16:52:05 +02:00
Jesse Rosenberger
5c40bc39fb
Update CHANGELOG.md 2018-11-14 16:42:24 +02:00
Jesse Rosenberger
8f50045353
Add CHANGELOG.md entry for #1960.
cc @zionts (msg: done!)
2018-11-14 09:37:25 +02:00
Adam Zionts
e40a2e90c4
Merge pull request #1960 from apollographql/adam/18/11/client-info-default-to-headers
AER/Default to headers for client identity
2018-11-13 17:51:25 -08:00
Adam Zionts
81d9f4719e aer/Default to headers for client identity in
lolwut

Revert "lolwut"

This reverts commit 03a2e101f6c25b46f0bdaf0e7578ab03a5ed7dad.
2018-11-13 17:36:38 -08:00
renovate[bot]
34cb3ea03c
chore(deps): update dependency husky to v1.1.4 (#1958) 2018-11-13 19:34:26 +00:00
Jesse Rosenberger
47676e0cd9
Publish
- apollo-cache-control@0.3.2
 - apollo-engine-reporting@0.1.2
 - apollo-server-azure-functions@2.2.2
 - apollo-server-cloud-functions@2.2.2
 - apollo-server-cloudflare@2.2.2
 - apollo-server-core@2.2.2
 - apollo-server-express@2.2.2
 - apollo-server-hapi@2.2.2
 - apollo-server-integration-testsuite@2.2.2
 - apollo-server-koa@2.2.2
 - apollo-server-lambda@2.2.2
 - apollo-server-micro@2.2.2
 - apollo-server-plugin-base@0.1.2
 - apollo-server-testing@2.2.2
 - apollo-server@2.2.2
 - apollo-tracing@0.3.2
 - graphql-extensions@0.3.2
2018-11-13 15:58:57 +02:00
Jesse Rosenberger
629ab68172
Fix TypeScript typing and improve message in async introspection query check.
Ref: #1955
2018-11-13 15:55:03 +02:00
Jesse Rosenberger
c6da03db17
Update CHANGELOG.md prior to publishing. 2018-11-13 15:25:57 +02:00
Prosper Otemuyiwa
d278d35c32
Revert "Add Authentication and File Uploads as guides and feature (#1956)" (#1957)
This reverts commit 61f2e47108.
2018-11-13 12:22:55 +01:00
Prosper Otemuyiwa
61f2e47108
Add Authentication and File Uploads as guides and feature (#1956)
* Add File uploads as a feature

* Add authentication to server as access-control
2018-11-13 12:09:18 +01:00
Jesse Rosenberger
e90e955f80
Follow up on #1955's incorrect then-able check.
I foolishly used `O.p.hasOwnProperty` here which, while safe for checking
properties, is actually not correct since this `then` property is inherited
from `Promise.prototype.then`.

Checking if `then` is a function should be safe _enough_.

Follows-up on: #1955
2018-11-13 12:42:01 +02:00
Jesse Rosenberger
c82cdec9b5
Throw an error on asynchronous introspection query behavior. (#1955)
We expect introspection queries to behave in an synchronous manner since
they do not have any resolvers which return Promises.  This expectation
seems to also be had by `graphql-js` which utilizes `graphqlSync`, rather
than `graphql` for execution of introspection queries.  In fact, this may be
one of the entire reasons that `graphqlSync` exists: to fulfill a contract
for synchronous execution of server introspection.  The introspection tests
within `graphql-js` seem to support this theory[[0]].

Utilities which wrap GraphQL resolvers should take care to maintain the
execution dynamics of what they are wrapping, or they should avoid wrapping
introspection types entirely by checking the type with the
`isIntrospectionType` predicate function from `graphql/type`[[1]].

[0]: 787422956c/src/type/__tests__/introspection-test.js
[1]: https://github.com/graphql/graphql-js/blob/74d1e941/src/type/introspection.js#L484.
Closes: https://github.com/apollographql/apollo-server/issues/1935
2018-11-13 12:11:56 +02:00
Martijn Walraven
26d6c73950 Update @apollographql/apollo-tools dependency to 0.2.6
Fixes #1951, apollographql/apollo-tooling#687.
2018-11-13 10:02:09 +01:00
Renovate Bot
ab73e7f119 chore(deps): update dependency node-fetch to v2.3.0 2018-11-13 08:51:55 +00:00
Renovate Bot
1fc11b5807 chore(deps): update dependency @types/node to v10.12.6 2018-11-13 08:31:35 +00:00
renovate[bot]
8bf483efc5 chore(deps): update dependency meteor-theme-hexo to v2 (#1941)
This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| meteor-theme-hexo | devDependencies | major | `1.0.16` -> `2.0.1` | [source](https://renovatebot.com/gh/meteor/meteor-theme-hexo) |

---

### Release Notes

<details>
<summary>meteor/meteor-theme-hexo</summary>

### [`v2.0.1`](https://renovatebot.com/gh/meteor/meteor-theme-hexo/compare/v1.0.16...v2.0.1)

[Compare Source](https://renovatebot.com/gh/meteor/meteor-theme-hexo/compare/v1.0.16...v2.0.1)

</details>

---

### Renovate configuration

📅 **Schedule**: "" in timezone America/Los_Angeles.

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻️ **Rebasing**: Whenever PR is stale, or if you modify the PR title to begin with "`rebase!`".

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

This PR has been generated by [Renovate Bot](https://renovatebot.com/gh/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#apollographql/apollo-server).
2018-11-12 10:26:16 -08:00
Evan Lucas
59af364aa3 ApolloServer: fix uploads error message (#1820)
There was a typo in the error message.
2018-11-12 06:04:11 -08:00
renovate[bot]
3ed9e4ced7 chore(deps): update dependency prettier to v1.15.2 (#1949)
* chore(deps): update dependency prettier to v1.15.2

* (lint) Fix desires of new `prettier` patch version, v1.15.2.

Ref: https://github.com/apollographql/apollo-server/pull/1949
2018-11-12 06:01:52 -08:00
Renovate Bot
48002098bc chore(deps): update dependency redis-mock to v0.39.0 2018-11-12 14:00:08 +00:00
Martijn Walraven
20eb2e9e03 Publish
- apollo-cache-control@0.3.1
 - apollo-engine-reporting@0.1.1
 - apollo-server-azure-functions@2.2.1
 - apollo-server-cloud-functions@2.2.1
 - apollo-server-cloudflare@2.2.1
 - apollo-server-core@2.2.1
 - apollo-server-express@2.2.1
 - apollo-server-hapi@2.2.1
 - apollo-server-integration-testsuite@2.2.1
 - apollo-server-koa@2.2.1
 - apollo-server-lambda@2.2.1
 - apollo-server-micro@2.2.1
 - apollo-server-plugin-base@0.1.1
 - apollo-server-testing@2.2.1
 - apollo-server@2.2.1
 - apollo-tracing@0.3.1
 - graphql-extensions@0.3.1
2018-11-12 14:26:26 +01:00
Jesse Rosenberger
b61dee310b
Add correct project references for apollo-server-cloud-functions. (#1948)
* Add correct project references for `apollo-server-cloud-functions`.

The `apollo-server-cloud-functions` has been been mis-referenced (or
referenced inconsistently) since its original inception in #1446 when its
package directory was `apollo-server-cloud-function` (singular!) and the
`package.json` referenced the plural form (`apollo-server-cloud-functions`):

https://github.com/apollographql/apollo-server/commit/724d9ff0#diff-e1d725fd66f7e9ef5251abf0437a09ca

These references have been mostly fixed in the READMEs and supporting
documentation, but the underlying monorepo directory structure has still not
been fixed, which I'm sure contributed to this module being overlooked and
unreferenced in the move to TypeScript project references in #1772.

Additionally, the lack of referencing in the monorepo's TS config has
resulted in it being broken in the most recent 2.2.0 release, as reported by
@pyros2097 and @thetre97 in: https://github.com/apollographql/apollo-server/pull/1896#issuecomment-436994955

This should fix that by properly adding the TypeScript project references.

* Sorting.
2018-11-12 05:13:04 -08:00
Jesse Rosenberger
d36eea0f84 typings: Improvements for apollo-server-testing's createTestClient. (#1943)
The `createTestClient` should receive either a `query` or a `mutation`, but
not both.
2018-11-10 20:48:43 -08:00
Evans Hauser
79e6a2ea42
Add client awareness reference api and some docs (#1927)
* Add client awareness reference api and some docs

* Reword and add default behavior to docs

* update clientReferenceId docs to be more explicit

* Update the generateClientInfo to use headers
2018-11-10 16:11:53 -08:00