diff --git a/examples/api-routes-graphql/package.json b/examples/api-routes-graphql/package.json index f64edb4245404..3002140e0991c 100644 --- a/examples/api-routes-graphql/package.json +++ b/examples/api-routes-graphql/package.json @@ -7,12 +7,12 @@ "start": "next start" }, "dependencies": { - "apollo-server-micro": "2.6.7", - "graphql": "14.4.2", - "isomorphic-unfetch": "3.0.0", + "apollo-server-micro": "2.11.0", + "graphql": "14.6.0", "next": "latest", - "react": "^16.8.6", - "react-dom": "^16.8.6" + "react": "16.13.1", + "react-dom": "16.13.1", + "swr": "0.1.18" }, "license": "ISC" } diff --git a/examples/api-routes-graphql/pages/index.js b/examples/api-routes-graphql/pages/index.js index 98edfabc2770c..e62fb7bc24f36 100644 --- a/examples/api-routes-graphql/pages/index.js +++ b/examples/api-routes-graphql/pages/index.js @@ -1,27 +1,29 @@ -import fetch from 'isomorphic-unfetch' +import useSWR from 'swr' -const Index = ({ users }) => ( -