-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Pure Apollo integration based on master
#1664
Conversation
24e02f8
to
5ef8174
Compare
- [x] `apollo-client` with full server-side rendering - [x] `apollo-link-state` - Client-side state management with `networkStatus` example - [x] `apollo-server` Without: * Flux (Redux) store - replaced by `apollo-link-state` * Fetch function - No need when you have an `apolloClient`
bc9958a
to
a1dc543
Compare
Hi! Great work, I will review it in my rare free time 🙂 Please remind me in few days if I forget to do it 😉 |
@langpavel Thank you for your support. I did on #1665 . |
Your work is now pushed in |
@langpavel Wow, pleasure, thanks. Then shall I delete this PR? Further commits and discussion seem to go in #1666. |
Don't delete this PR, you can push fresh commits here. |
All right. I'll push another to it when I feel like it. |
49bfabe
to
787bbed
Compare
@langpavel I have a question. When I'd like to update |
Sorry I missed your previous comment, I'll create a PR pointing to |
* Upgrade all dependencies 1. ncu --upgradeAll 4. Leave "graphql" to be "^13.2.0" that apollo packages depend on 2. Apply patch of "npx babel-upgrade" output 3. Leave only necessary babel plugins 4. Pass "yarn fix" by disabling stricter rules * Pass "req" through GraphQL resolver context * Through rootValue it cannot be passed from browser GraphQL access * rm unnecessary code * Add "Timestamp" scalar type for convinience * rm unnecessary files * fix: Timestamp didn't work * npm graphql requires to be update vercel/next.js#5238 (comment) * Feature: Codegen from GraphQL schema and use more Flow types (#2) * install apllo * add apollo.config.js * apollo codegen succeeded * fix: updateNetworkStatus signature * rm @flow from files not ready * add flow-typed files * done: Using auto-generated types works * [email protected]+ has regression. Use ^0.88.0. * fix: invalid GraphQL primitive types * Add codegen script * done: import auto-generated file * refac: move impl for apollo-link-state to graphql dir as same as server side resolvers * codegen and ignore eslint these files * refactor: "networkStatus" * feat: codegen:standalone * refac: "OnMemoryState" is what I meant * Improve codegen (#3) * delete existing auto-generated types * change script name * ignore __generated__ folder * wip: disallow absolute path resolving under `src` dir * It causes disregard .js type checking under src * fix all flow error * modify: prevent `withStyles` drops component type * Modify targe Node versions * Fix build failure: Codegen before lint * Add Node v10 LTS for build target
a99f62d
to
c15b123
Compare
deb0578
to
27ba7d3
Compare
* small README.md grammar change (kriasoft#1675) * Upgrade all dependencies including Babel 7 (kriasoft#1673) * Upgrade all dependencies including Babel 7 1. ncu --upgradeAll 4. Leave "graphql" to be "^13.2.0" that apollo packages depend on 2. Apply patch of "npx babel-upgrade" output 3. Leave only necessary babel plugins 4. Pass "yarn fix" by disabling stricter rules fixes kriasoft#1654 kriasoft#1626 kriasoft#1607 * Also ignore babel config file from webpack.config.js * Resolve conflict and follow upstream/master * small README.md grammar change (kriasoft#1675) * Upgrade all dependencies including Babel 7 (kriasoft#1673) * Upgrade all dependencies including Babel 7 * update apollo packages * Use new local state management of Apollo Client 2.5 * Client Schema * Simplify cache and cache defaults * User in local state instead of context * bye apollo-link-state * mod: better suppressing flow error for .graphql import * fix: jest error by updating jest * Upgrade all dependencies fix 2 breaking changes: * css-loader no longer accepts 'minimize' option * isomorphic-style-loader uses new React Context now * refac: Use functional component for components * fix: resolve apollo and graphql versions problem ref. apollographql/apollo-tooling#630 (comment)
87fca22
to
dced0fa
Compare
9a2f3eb
to
6d98c30
Compare
improve eslint defs
* Sqlite3 is still working on supporting Node12 TryGhost/node-sqlite3#1151
I think I can close this PR now. I'll keep maintaining |
Pure Apollo integration based on
master
.Features
apollo-client
with full server-side rendering - Nofetch()
[email protected]
withnetworkStatus
exampleapollo-server
serves GraphQL APITimestamp
for an exampleBranches