Commit graph

506 commits

Author SHA1 Message Date
Zemmiph0bia
0b14a3f1ff Small documentation update (#2376)
Small documentation fix - coming across the phrase "encrypted WSS socket" and it's a bit odd when you're mentally expanding it to: "encrypted web socket secure socket"
2019-02-27 12:59:29 +02:00
Jesse Rosenberger
01202bb9bf
docs: Remove "beta" indication in logFunction metrics example. 2019-02-26 11:19:47 +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
Anton Vlasenko
720102c2a5 Schema types doc: fix a typo (#2348) 2019-02-22 13:00:40 +02:00
Jesse Rosenberger
f6cdc94f29
docs: Remove suggestion that server is required for applyMiddleware.
The `server` attribute is neither required nor actually a valid property at all.

Closes #1413.
2019-02-20 20:41:04 +02:00
Daniel Beck
7b1f6ddeb1 Note that schema stitching and file uploads are incompatible. (#2272) 2019-02-06 11:55:26 +02:00
Jesse Rosenberger
6853b5238c
docs: Fix misspelling of "example".
Follows-up #2231.
2019-02-04 15:05:20 +02:00
Bill Fienberg
60794ecad0 Fix grammar error (missing preposition) (#2231)
*Before*: allows the addition custom
*After*: allows the addition of custom
2019-02-04 15:04:37 +02:00
Jesse Rosenberger
e84aca256c
Update apollo-server.md to reflect new location of signature reference. 2019-02-01 20:40:28 +02:00
Michael P. Geraci
a0e25cf2bd Fix a typo in the "Custom GraphQLScalarType instance" example (#2247)
This is just a quick fix for a typo that threw me for a loop when testing out this example.
2019-01-31 10:12:47 +02:00
Pete Browne
ba0f4f559f docs: Fix bodyParserConfig in applyMiddleware (#2184) 2019-01-25 16:27:39 +02:00
Jesse Rosenberger
9b8dc1b607
Address unaddressed feedback from #1223.
These were things I'd suggested prior to merging and I just happened to come across it again, only to find they were still outstanding:

https://github.com/apollographql/apollo-server/pull/1223
2019-01-08 20:25:18 +02:00
Kornel Dubieniecki
c03fe79e33 Make gql example consistent and easier to read (#2087)
Hey guys,
I've noticed that some of the gql examples are indented differently than the rest and I think that consistent indentation and formatting makes it easier to read and comprehend.
Let me know what you think, thanks.
2018-12-13 15:55:04 +02:00
Jesse Rosenberger
363472c87f
Update migration-file-uploads.md 2018-12-03 14:01:28 +02:00
Jesse Rosenberger
9c563fae50
Throw error at startup when file uploads are enabled on Node.js < 8.5.0.
Due to changes in the third-party `graphql-upload` package which Apollo
Server utilizes to implement out-of-the-box file upload functionality, we
must drop support for file uploads in versions of the Node.js engine prior
to v8.5.0.  Since file uploads are supported by default in Apollo Server 2.x,
and there is an explicit dependency on `graphql-upload`, we must
prevent users who are affected by this mid-major-release deprecation by
being surprised by the sudden lack of upload support.

By `throw`-ing an error at server startup for affected users, we certainly
are breaking a semantic versioning agreement for these users, however with a
relatively simple ergonomic (setting `uploads: false`) we allow those users
who are NOT utilizing file uploads (as we believe is the case with a
majority) to continue using their version of Node.js until it reaches the
end of its supported lifetime (as dictated by its Long Term Support
agreement with the Node.js Foundation).  If we did not `throw` the error at
server start-up, those affected may not notice since they may update and start
their updated server without noticing the impending chance of failure when
someone tries updating!

Apollo Server 2.x has attempted to maintain full compatibility with versions
of Node.js which are still under Long Term Support agreements with the
Node.js Foundation.  While this continues to mostly be true, file uploads
are an exception which we've now had to make.

Third-party open-source projects must absolutely do what's best for their
project.  From an architecture standpoint, I suspect that we (the designers
behind Apollo Server) are mostly to blame for this.  Namely, it's unfortunate
that we had made such an incredibly coupled integration with a third-party
package that we restricted our users from incrementally adopting the
changes (and new/improved functionality) of, in this particular case,
the `graphql-upload` package.  I hope we can take better care with decisions
like this in the future!

Lastly, this commit also adds documentation to help those affected.
2018-11-30 15:59:57 +02:00
Leonardo Gatica
0c2fbc3dec
feat(uploads): replace apollo-upload-server v5 with graphql-upload v8 2018-11-30 15:45:01 +02:00
Pratik Nikam
54c56bfc64 Fix hyperlink for masking and logging errors. (#2032) 2018-11-29 09:08:34 +02:00
renovate[bot]
c6df148893
chore(deps): update dependency chexo to v1.0.7 (#2039) 2018-11-28 23:55:06 +00:00
Jesse Rosenberger
58cb6511d7
docs: Update migration guide to playground, not gui.
Fixes #1717
2018-11-22 16:15:18 +02: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
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
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
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]
9b86ef4a93 chore(deps): update dependency hexo-prism-plus to v1.1.0 (#1962) 2018-11-14 16:52:05 +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
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
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
Jake Dawkins
d07b4b7048 added apollo-server-testing docs (#1939)
These are docs to accompany the `apollo-server-testing` utils

<!--
  Thanks for filing a pull request on GraphQL Server!

  Please look at the following checklist to ensure that your PR
  can be accepted quickly:
-->

TODO:

* [ ] Update CHANGELOG.md with your change (include reference to issue & this PR)
* [ ] Make sure all of the significant new logic is covered by tests
* [ ] Rebase your changes on master so that they can be merged easily
* [ ] Make sure all tests and linter rules pass

<!--**Pull Request Labels**

While not necessary, you can help organize our pull requests by labeling this issue when you open it.  To add a label automatically, simply [x] mark the appropriate box below:

- [ ] feature
- [ ] blocking
- [x] docs

To add a label not listed above, simply place `/label another-label-name` on a line by itself.
-->
2018-11-09 17:30:15 -08:00
Jake Dawkins
75b19b82f2
Clarified wording of mocking docs (#1901)
* clarified wording of mocking docs

* Update mocking.md
2018-11-01 18:27:50 -04:00
seya
ee81add0ff centralized “Get Started” Image in the doc (#1883)
* centralized “Get Started” Image

* Fixed to centralize the text no matter which font is used
2018-10-26 20:15:13 +03:00
Andre Eberhardt
b640be4fe6 feature(apollo-engine-reporting): Add custom http agent support (#1879)
This PR fixes #1836.

This PR enables developers to inject the http agent to be used on the network requests to apollo engine endpoint.

<!--
  Thanks for filing a pull request on GraphQL Server!

  Please look at the following checklist to ensure that your PR
  can be accepted quickly:
-->

TODO:

* [x] Update CHANGELOG.md with your change (include reference to issue & this PR)
* [x] Make sure all of the significant new logic is covered by tests
* [x] Rebase your changes on master so that they can be merged easily
* [x] Make sure all tests and linter rules pass

<!--**Pull Request Labels**

While not necessary, you can help organize our pull requests by labeling this issue when you open it.  To add a label automatically, simply [x] mark the appropriate box below:

- [ ] feature
- [ ] blocking
- [ ] docs

To add a label not listed above, simply place `/label another-label-name` on a line by itself.
-->
2018-10-26 20:14:18 +03:00
Espen Hovlandsdal
b2f677fb6e Fix typo in metrics documentation (#1856) 2018-10-25 11:07:21 +03:00
Renovate Bot
a619a8cd28 chore(deps): update dependency hexo to v3.8.0 2018-10-19 09:46:12 +00:00
Marcin Jekot
87335b5998 Suggestion: change wording
Fix grammar, and hopefully make the explanation a bit clearer.

It could also be said like this (for a smaller diff) ;-)

"By allowing the consumer of the API to see the full possibilities that an API can *deliver*, developers can"...
2018-10-16 14:01:43 +02:00
0xflotus
536b204de1 fixed arbitrarily (#1816) 2018-10-15 10:09:49 +03:00
0xflotus
e773932545 fixed typos in docs (#1817)
* Update authentication.md

* Update schema-design.md

* Update schema-design.md

* Update heroku.md

* Update lambda.md

* Update server.md
2018-10-15 10:09:25 +03:00
Nicolas Marien
94fc935d3c "Fix incorrect documentation for enum value" (#1802) 2018-10-11 16:36:31 +03:00
Alexander CherryTea
0b05b5e92e Update data.md (#1794)
That example code crush with error `find is not defined`, because in imports forgot about lodash `find` and `filter`
2018-10-10 17:26:58 +03:00
Dan Dascalescu
23ed96a6db More nuanced handling of stack traces in errors (#1708) 2018-10-10 17:22:10 +03:00
KarinaDavtyan
17073ed00b docs: update apollo-cache-control link (#1762) 2018-10-10 17:10:58 +03:00
Martin d'Allens
e7296b79aa Docs: fix the example for "Using an Existing Schema" (#1761)
* Fix the example for "Using an Existing Schema"

The file caused the following error:
```
const gql = String.raw;
      ^
SyntaxError: Identifier 'gql' has already been declared
```

* Update migration-two-dot.md

* Update migration-two-dot.md
2018-10-10 16:57:18 +03:00
Miguel Dorta
a61413a190 Fix typo (#1745) 2018-10-02 09:29:17 +02:00