Commit graph

482 commits

Author SHA1 Message Date
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
Loc Nguyen
32db56169c Use gql tag in typeDef examples that were missing it. Also fix a type in a require statement. (#1756) 2018-10-02 09:28:37 +02:00
Jake Dawkins
673a580660 docs: Make schema directive example clearer (#1715)
The schema directive example [here](https://www.apollographql.com/docs/apollo-server/v2/features/directives.html) doesn't work. The package being imported was meant to be an _example_, unworking directive. This is confusing for people trying to run this example, so I replaced it with a real one.
2018-09-24 20:34:46 +03:00
Hugh Willson
dd86fa8a29 Re-enable Typescript esModuleInterop (#1699)
`esModuleInterop` was enabled in
e4164c8892
to help with importing from packages that use default exports.
Those changes were reverted in
https://github.com/apollographql/apollo-server/pull/1210
to work around a few reported issues. Those issues are no longer
relevant, so this commit re-enables `esModuleInterop`, and
updates all default imports to use the more common (standard)
import syntax.
2018-09-21 16:43:33 +03:00
William Li
c0446dc4aa Incorrect description in docs for Mocks (#1692)
* Incorrect sample codes

```const { ApolloServer } = require('apollo-server');```
should be 
```const { ApolloServer, gql } = require('apollo-server');```

The functions in `mocks` would be used when no resolver in `resolvers` is specified only when `mockEntireSchema: false`.

* Update mocking.md

Change the documentation to be correct, indicating that the mocks overwrite the resolvers
2018-09-20 12:03:56 -07:00
Tim Griesser
4175f1b9cd Allow an optional function to resolve the rootValue (#1555)
* Allow an optional function to resolve the rootValue

Passes the parsed DocumentNode AST to determine the root value,
useful when providing a different rootValue for query vs mutation

* Add API docs for rootValue
2018-09-20 11:47:40 -07:00
Christoph Müller
3b21ade045 Update schema-stitching.md (#1561)
On version 3.1.1 there is an error ( `Error: Invalid schema passed` ) when wrapping the `linkTypeDefs` in `gql`. Passing the plain string the example works.
2018-09-20 17:19:49 +03:00
Jesse Rosenberger
6d6c9ff268
Make it more clear that generateClientInfo is an experimental API.
The `generateClientInfo` API, used to set client identification attributes
within traces, is an experimental API and is subject to removal or change in
a future (major) Apollo Server release.

Ref: #1631
2018-09-20 12:11:56 +03:00
Evans Hauser
96af44e41a
Provide ability to specify client info in traces (#1631)
* Provide ability to specify client info in traces

Adds the createClientInfo to apollo-engine-reporting, which enables the
differentiation of clients based on the request, operation, and
variables. This could be extended to include the response. However for
the first release. It doesn't quite make sense.

* Use extensions and context in createClientInfo

* Remove support for clientAddress

The frontend will not support it in the near future

* create -> generate and make default generator

createClientInfo -> generateClientInfo

* Clarify default values
2018-09-17 22:45:34 -07:00
Kornel Dubieniecki
e2580a31de Fix type for a mutation example (#1635) 2018-09-17 16:44:35 -07:00
Kornel Dubieniecki
47e10fc3cf Add Non-Nullable type example (#1636) 2018-09-17 16:44:22 -07:00
Kornel Dubieniecki
e2ccc9c6ca Add express import in middleware apollo-server-express example (#1637) 2018-09-17 16:43:44 -07:00
ellord
39260da493 Small grammatical fix ("a" as opposed to "an") (#1655) 2018-09-17 16:43:04 -07:00
Rafael Almeida
83178c3915 Add exception on note regarding the removal of Upload scalar (#1658)
* Add exception on note regarding the removal of Upload scalar

* Update whats-new.md
2018-09-17 16:42:34 -07:00
Kornel Dubieniecki
047e848841 Add subscription type example (#1648) 2018-09-17 16:37:04 -07:00
Tim Roberts
d9590eeb5f Fix example link (#1682)
This PR adds a link to the `this example` link that was missing a URL.
2018-09-17 14:40:38 -07:00
Michael Watson
4166098e24 update @depracated to use "reason" (#1665)
See original spec: http://facebook.github.io/graphql/draft/#sec--deprecated
2018-09-14 09:43:22 +03:00
Evans Hauser
4a409766a5 Add toggle for including error messages in reports (#1615)
Fixes #1613.

We always send traces that includes an error node if the trace has an
error. In the case that sending errors is disabled, we replace the
message and remove the location.

Note that the Engine proxy strips all error information from the traces
with noErrorTraces set. To get errors to show up in the ui, the proxy
sends error counts inside of the aggregated stats reports. To get
similar behavior inside of the apollo server metrics reporting, we
always send a trace and mask out the PII.
2018-09-05 16:01:14 +02:00
Ryan Maxwell
b349b43a2f Fix typo in performance scaling paragraph (#1605) 2018-09-05 15:57:09 +02:00
Zak Mandhro
34ece7552b Added description and sample code for enabling SSL 2018-09-01 09:41:13 +02:00
xAKLx
27d65a1d6a Fix "To be successful" line 2018-09-01 09:25:30 +02:00
Renovate Bot
e848353814
chore(deps): update dependency hexo-server to v0.3.3 2018-08-28 09:25:12 +00:00
Jesse Rosenberger
d38ee1cf7d
Add the package-lock.json file for the docs/ sub-dir for reproducibility.
The documentation deployment will be less prone to transitive dependency
changes by introducing a `package-lock.json` file.
2018-08-28 12:08:13 +03:00
Evans Hauser
efc5302930
Add option to mock the entire schema(i.e. set preserveResolvers) (#1546)
* add mockEntireSchema as configuration for preserveResolvers

* add mockEntireSchema to api reference

* add changelog
2018-08-16 11:21:13 -07:00
Dimitri Nicolas
25f568b391 Typo in doc "Migrating to v2.0" (#1538) 2018-08-16 08:48:14 -07:00