Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server-side rendering #16

Closed
bkinsey808 opened this issue Jun 1, 2016 · 6 comments
Closed

server-side rendering #16

bkinsey808 opened this issue Jun 1, 2016 · 6 comments

Comments

@bkinsey808
Copy link

Is integrating with angular universal on the radar for this project?

https://universal.angular.io/quickstart/

@helfer
Copy link
Contributor

helfer commented Jun 1, 2016

I'm not familiar with angular universal. What is it, and what would it mean to integrate with it?

@bkinsey808
Copy link
Author

It speeds up angular 2 apps significantly, especially on the initial page, by rendering on the server. The react ecosystem also has server side rendering, but I've never played with it. A good full stack system really ought to have it. As far as i know, angular universal has so far only been implemented for express, and not hapi, koa, etc.

@helfer
Copy link
Contributor

helfer commented Jun 2, 2016

Ah I see. This is mostly up to the view layer integration, I think. The GraphQL server will have very little to do with this and should just work out of the box for it.

I think we have somethin in the pipelines for the react-bindings: apollographql/react-apollo#54

For something similar in Angular, you should probably close the issue here and open it on the angular2-apollo repo: https://github.com/apollostack/angular2-apollo

@bkinsey808
Copy link
Author

But server side rendering must be done on the server. So it is not really a client side issue. However it is true that the angular universal server could be run on a separate server than the api (graphql) server. It seems like apollo project as a whole needs to think about this assuming it is serious about deeply integrating with angular 2.

@helfer
Copy link
Contributor

helfer commented Jun 2, 2016

Yes, it has to be done on a server, but it doesn't affect the graphql part of the server. The more challenging part is making sure that whatever code people write for the frontend can be rendered by the server as well, which is why I think it makes most sense if @Urigo takes a look first. If there's anything we need to do server-side to make it possible, I can take care of that.

@bkinsey808
Copy link
Author

sounds good, thanks.

evans pushed a commit that referenced this issue Jul 3, 2018
This exposes the `cacheControl` hints on the schema, to the resolvers at runtime.
evans pushed a commit that referenced this issue Jul 3, 2018
* Initial commit

* Add .npmignore to avoid ignoring lib when publishing

* 0.0.2

* Update graphql-extensions dependency to 0.0.2

* 0.0.3

* Reorganize code and add tests

* 0.0.4

* Add tests and reorganize code

* 0.0.5

* Update dependency to graphql-extensions 0.0.4

* 0.0.6

* Update graphql-extensions dependency and downgrade TS target

* 0.0.7

* Update README

* Update README

* Update README

* Update README

* Add import instructions for TypeScript to README (#7)

* Add cache hints when the directive is defined on interfaces (#10)

* Increase version range for `graphql` peerDependency. (#12)

* 0.0.8

* Update dependencies

* 0.0.9

* [apollo-bot] Update the Issue/PR Templates with auto label (#13)

* [apollo-bot] Update the Templates with docs label (#15)

* Add cache hints to info.cacheControl (#16)

This exposes the `cacheControl` hints on the schema, to the resolvers at runtime.

* Update `graphql` peer dependency range to allow 0.13.x.

* dev: Update TypeScript to latest version, v2.7.2.

* dev: Update jest & dependencies to latest versions.

* dev: Update type definitions for `graphql`, `node` and `jest`.

* dev: Update `graphql` to latest version, v0.13.2.

* 0.0.10

* Add defaultMaxAge option

This is an easy way to quickly say "I want everything in my schema to be cached
for 5 seconds". You can override it with specific maxAges on specific fields or
types.

An upcoming release of apollo-server-* will allow you to specify options to
cacheControl.

* Add CircleCI config

* Add partial CHANGELOG

* 0.1.0

* Honor overwrite default maxAge with maxAge=0 (Fixes #22) (#23)

* 0.1.1

* Allow default caching to apply to interfaces

* remove unused files

* update versions and use a-s style config

* run prettier

* fix tests and typing
trevor-scheer pushed a commit that referenced this issue May 6, 2020
This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| typescript | devDependencies | patch | `3.3.1` -> `3.3.3333` | [homepage](https://www.typescriptlang.org/), [source](https://togithub.com/Microsoft/TypeScript) |

---

### Release Notes

<details>
<summary>Microsoft/TypeScript</summary>

### [`v3.3.3333`](https://togithub.com/Microsoft/TypeScript/releases/v3.3.3333)

[Compare Source](https://togithub.com/Microsoft/TypeScript/compare/v3.3.3...v3.3.3333)

For release notes, check out the [release announcement](https://blogs.msdn.microsoft.com/typescript/2019/01/31/announcing-typescript-3-3/) 

For new features, check out the [What's new in TypeScript 3.3](https://togithub.com/Microsoft/TypeScript/wiki/What's-new-in-TypeScript#typescript-33).

For the complete list of fixed issues, check out the

-   [fixed issues query for Typescript 3.3](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3%22+is%3Aclosed+).
-   [fixed issues query for Typescript 3.3.1](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3.1%22+is%3Aclosed+).
-   [fixed issues query for Typescript 3.3.3](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3.3%22+is%3Aclosed+).
-   [fixed issues query for Typescript 3.3.3333](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3.3333%22+is%3Aclosed+).

Downloads are available on:

-   [npm](https://www.npmjs.com/package/typescript)
-   [Visual Studio 2017](https://marketplace.visualstudio.com/items?itemName=TypeScriptTeam.typescript-331-vs2017) ([Select new version in project options](https://togithub.com/Microsoft/TypeScript/wiki/Updating-TypeScript-in-Visual-Studio-2017))
-   [NuGet package](https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild/3.3.1)

Special thanks to all our contributors in this release:

-   Alessandro Vergani
-   Alexander Tarasyuk
-   Anders Hejlsberg
-   Andrew Casey
-   Andy Hanson
-   Aziz Khambati
-   Basarat Ali Syed
-   Benjamin Lichtman
-   Brandon Banks
-   Caleb Sander
-   [@&#8203;csigs](https://togithub.com/csigs)
-   Daiki Nishikawa
-   Daniel Rosenwasser
-   David Sherret
-   Dhruv Rajvanshi
-   Eddie Jaoude
-   [@&#8203;EECOLOR](https://togithub.com/EECOLOR)
-   [@&#8203;falsandtru](https://togithub.com/falsandtru)
-   Igor Oleinikov
-   iliashkolyar
-   IllusionMH
-   Jack Williams
-   Jordi Oliveras Rovira
-   Kagami Sascha Rosylight
-   Klaus Meinhardt
-   Leon Aves
-   Limon Monte
-   Marcus Noble
-   Markus Wolf
-   Martin Probst
-   Matt McCutchen
-   Michael Tang
-   Mine Starks
-   Nathan Shively-Sanders
-   Noel Yoo
-   Patrick McCartney
-   Philip Pesca
-   Prateek Goel
-   Prateek Nayak
-   Roger Spratley
-   Ron Buckton
-   Ryan Cavanaugh
-   Ryan Clarke
-   Sam Drugan
-   Sergio Baidon
-   Sheetal Nandi
-   [@&#8203;surlymrz](https://togithub.com/surlymrz)
-   Valera Rozuvan
-   Wenlu Wang
-   Wesley Wigham

### [`v3.3.3`](https://togithub.com/Microsoft/TypeScript/releases/v3.3.3)

[Compare Source](https://togithub.com/Microsoft/TypeScript/compare/v3.3.1...v3.3.3)

For release notes, check out the [release announcement](https://blogs.msdn.microsoft.com/typescript/2019/01/31/announcing-typescript-3-3/) 

For new features, check out the [What's new in TypeScript 3.3](https://togithub.com/Microsoft/TypeScript/wiki/What's-new-in-TypeScript#typescript-33).

For the complete list of fixed issues, check out the

-   [fixed issues query for Typescript 3.3](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3%22+is%3Aclosed+).
-   [fixed issues query for Typescript 3.3.1](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3.1%22+is%3Aclosed+).
-   [fixed issues query for Typescript 3.3.3](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3.3%22+is%3Aclosed+).

Downloads are available on:

-   [npm](https://www.npmjs.com/package/typescript)
-   [Visual Studio 2017](https://marketplace.visualstudio.com/items?itemName=TypeScriptTeam.typescript-331-vs2017) ([Select new version in project options](https://togithub.com/Microsoft/TypeScript/wiki/Updating-TypeScript-in-Visual-Studio-2017))
-   [NuGet package](https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild/3.3.1)

Special thanks to all our contributors in this release:

-   Alessandro Vergani
-   Alexander Tarasyuk
-   Anders Hejlsberg
-   Andrew Casey
-   Andy Hanson
-   Aziz Khambati
-   Basarat Ali Syed
-   Benjamin Lichtman
-   Brandon Banks
-   Caleb Sander
-   [@&#8203;csigs](https://togithub.com/csigs)
-   Daiki Nishikawa
-   Daniel Rosenwasser
-   David Sherret
-   Dhruv Rajvanshi
-   Eddie Jaoude
-   [@&#8203;EECOLOR](https://togithub.com/EECOLOR)
-   [@&#8203;falsandtru](https://togithub.com/falsandtru)
-   Igor Oleinikov
-   iliashkolyar
-   IllusionMH
-   Jack Williams
-   Jordi Oliveras Rovira
-   Kagami Sascha Rosylight
-   Klaus Meinhardt
-   Leon Aves
-   Limon Monte
-   Marcus Noble
-   Markus Wolf
-   Martin Probst
-   Matt McCutchen
-   Michael Tang
-   Mine Starks
-   Nathan Shively-Sanders
-   Noel Yoo
-   Patrick McCartney
-   Philip Pesca
-   Prateek Goel
-   Prateek Nayak
-   Roger Spratley
-   Ron Buckton
-   Ryan Cavanaugh
-   Ryan Clarke
-   Sam Drugan
-   Sergio Baidon
-   Sheetal Nandi
-   [@&#8203;surlymrz](https://togithub.com/surlymrz)
-   Valera Rozuvan
-   Wenlu Wang
-   Wesley Wigham

</details>

---

### Renovate configuration

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

:vertical_traffic_light: **Automerge**: Enabled.

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

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

---

 - [ ] <!-- renovate-rebase -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://togithub.com/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#apollographql/apollo-platform-commercial).
trevor-scheer pushed a commit that referenced this issue May 14, 2020
This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| typescript | devDependencies | patch | `3.3.1` -> `3.3.3333` | [homepage](https://www.typescriptlang.org/), [source](https://togithub.com/Microsoft/TypeScript) |

---

### Release Notes

<details>
<summary>Microsoft/TypeScript</summary>

### [`v3.3.3333`](https://togithub.com/Microsoft/TypeScript/releases/v3.3.3333)

[Compare Source](https://togithub.com/Microsoft/TypeScript/compare/v3.3.3...v3.3.3333)

For release notes, check out the [release announcement](https://blogs.msdn.microsoft.com/typescript/2019/01/31/announcing-typescript-3-3/) 

For new features, check out the [What's new in TypeScript 3.3](https://togithub.com/Microsoft/TypeScript/wiki/What's-new-in-TypeScript#typescript-33).

For the complete list of fixed issues, check out the

-   [fixed issues query for Typescript 3.3](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3%22+is%3Aclosed+).
-   [fixed issues query for Typescript 3.3.1](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3.1%22+is%3Aclosed+).
-   [fixed issues query for Typescript 3.3.3](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3.3%22+is%3Aclosed+).
-   [fixed issues query for Typescript 3.3.3333](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3.3333%22+is%3Aclosed+).

Downloads are available on:

-   [npm](https://www.npmjs.com/package/typescript)
-   [Visual Studio 2017](https://marketplace.visualstudio.com/items?itemName=TypeScriptTeam.typescript-331-vs2017) ([Select new version in project options](https://togithub.com/Microsoft/TypeScript/wiki/Updating-TypeScript-in-Visual-Studio-2017))
-   [NuGet package](https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild/3.3.1)

Special thanks to all our contributors in this release:

-   Alessandro Vergani
-   Alexander Tarasyuk
-   Anders Hejlsberg
-   Andrew Casey
-   Andy Hanson
-   Aziz Khambati
-   Basarat Ali Syed
-   Benjamin Lichtman
-   Brandon Banks
-   Caleb Sander
-   [@&#8203;csigs](https://togithub.com/csigs)
-   Daiki Nishikawa
-   Daniel Rosenwasser
-   David Sherret
-   Dhruv Rajvanshi
-   Eddie Jaoude
-   [@&#8203;EECOLOR](https://togithub.com/EECOLOR)
-   [@&#8203;falsandtru](https://togithub.com/falsandtru)
-   Igor Oleinikov
-   iliashkolyar
-   IllusionMH
-   Jack Williams
-   Jordi Oliveras Rovira
-   Kagami Sascha Rosylight
-   Klaus Meinhardt
-   Leon Aves
-   Limon Monte
-   Marcus Noble
-   Markus Wolf
-   Martin Probst
-   Matt McCutchen
-   Michael Tang
-   Mine Starks
-   Nathan Shively-Sanders
-   Noel Yoo
-   Patrick McCartney
-   Philip Pesca
-   Prateek Goel
-   Prateek Nayak
-   Roger Spratley
-   Ron Buckton
-   Ryan Cavanaugh
-   Ryan Clarke
-   Sam Drugan
-   Sergio Baidon
-   Sheetal Nandi
-   [@&#8203;surlymrz](https://togithub.com/surlymrz)
-   Valera Rozuvan
-   Wenlu Wang
-   Wesley Wigham

### [`v3.3.3`](https://togithub.com/Microsoft/TypeScript/releases/v3.3.3)

[Compare Source](https://togithub.com/Microsoft/TypeScript/compare/v3.3.1...v3.3.3)

For release notes, check out the [release announcement](https://blogs.msdn.microsoft.com/typescript/2019/01/31/announcing-typescript-3-3/) 

For new features, check out the [What's new in TypeScript 3.3](https://togithub.com/Microsoft/TypeScript/wiki/What's-new-in-TypeScript#typescript-33).

For the complete list of fixed issues, check out the

-   [fixed issues query for Typescript 3.3](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3%22+is%3Aclosed+).
-   [fixed issues query for Typescript 3.3.1](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3.1%22+is%3Aclosed+).
-   [fixed issues query for Typescript 3.3.3](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3.3%22+is%3Aclosed+).

Downloads are available on:

-   [npm](https://www.npmjs.com/package/typescript)
-   [Visual Studio 2017](https://marketplace.visualstudio.com/items?itemName=TypeScriptTeam.typescript-331-vs2017) ([Select new version in project options](https://togithub.com/Microsoft/TypeScript/wiki/Updating-TypeScript-in-Visual-Studio-2017))
-   [NuGet package](https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild/3.3.1)

Special thanks to all our contributors in this release:

-   Alessandro Vergani
-   Alexander Tarasyuk
-   Anders Hejlsberg
-   Andrew Casey
-   Andy Hanson
-   Aziz Khambati
-   Basarat Ali Syed
-   Benjamin Lichtman
-   Brandon Banks
-   Caleb Sander
-   [@&#8203;csigs](https://togithub.com/csigs)
-   Daiki Nishikawa
-   Daniel Rosenwasser
-   David Sherret
-   Dhruv Rajvanshi
-   Eddie Jaoude
-   [@&#8203;EECOLOR](https://togithub.com/EECOLOR)
-   [@&#8203;falsandtru](https://togithub.com/falsandtru)
-   Igor Oleinikov
-   iliashkolyar
-   IllusionMH
-   Jack Williams
-   Jordi Oliveras Rovira
-   Kagami Sascha Rosylight
-   Klaus Meinhardt
-   Leon Aves
-   Limon Monte
-   Marcus Noble
-   Markus Wolf
-   Martin Probst
-   Matt McCutchen
-   Michael Tang
-   Mine Starks
-   Nathan Shively-Sanders
-   Noel Yoo
-   Patrick McCartney
-   Philip Pesca
-   Prateek Goel
-   Prateek Nayak
-   Roger Spratley
-   Ron Buckton
-   Ryan Cavanaugh
-   Ryan Clarke
-   Sam Drugan
-   Sergio Baidon
-   Sheetal Nandi
-   [@&#8203;surlymrz](https://togithub.com/surlymrz)
-   Valera Rozuvan
-   Wenlu Wang
-   Wesley Wigham

</details>

---

### Renovate configuration

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

:vertical_traffic_light: **Automerge**: Enabled.

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

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

---

 - [ ] <!-- renovate-rebase -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://togithub.com/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#apollographql/apollo-platform-commercial).
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants