Skip to content

Update example and add npm dependency 🤠 #1

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

Merged
merged 2 commits into from
Feb 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/components/cache-resetter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GraphQLConsumer } from '../../lib'
import { GraphQLConsumer } from 'graphql-react'

const CacheResetter = () => (
<GraphQLConsumer>
Expand Down
2 changes: 1 addition & 1 deletion example/components/create-timer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GraphQLMutation } from '../../lib'
import { GraphQLMutation } from 'graphql-react'
import Loader from './loader'

const CreateTimer = () => (
Expand Down
2 changes: 1 addition & 1 deletion example/components/timers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GraphQLQuery } from '../../lib'
import { GraphQLQuery } from 'graphql-react'
import Loader from './loader'
import HTTPError from './http-error'
import ParseError from './parse-error'
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@std/esm": "^0.22.0",
"apollo-server-koa": "^1.3.2",
"graphql": "^0.13.1",
"graphql-react": "file:..",
"graphql-react": "latest",
"graphql-tools": "^2.21.0",
"isomorphic-unfetch": "^2.0.0",
"koa": "^2.5.0",
Expand Down
2 changes: 1 addition & 1 deletion example/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GraphQL, GraphQLProvider } from '../../lib'
import { GraphQL, GraphQLProvider } from 'graphql-react'
import CacheResetter from '../components/cache-resetter'
import CreateTimer from '../components/create-timer'
import Timers from '../components/timers'
Expand Down
2 changes: 1 addition & 1 deletion example/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ Example [Next.js](https://npm.im/next) app and GraphQL API.
To get started, in Terminal run:

```shell
git clone https://github.com/jaydenseric/graphql-react.git && cd example && npm install && npm run dev
git clone https://github.com/jaydenseric/graphql-react.git && cd graphql-react/example && npm install && npm run dev
```