Skip to content

Commit aa99f96

Browse files
committed
docs: use a fake GraphQL endpoint instead of graph.cool
1 parent 81824c7 commit aa99f96

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,7 @@ Or using GraphQL:
209209
```js
210210
import { request } from 'graphql-request'
211211

212-
const API = 'https://api.graph.cool/simple/v1/movies'
213-
const fetcher = query => request(API, query)
212+
const fetcher = query => request('/api/graphql', query)
214213

215214
function App() {
216215
const { data, error } = useSWR(

0 commit comments

Comments
 (0)