Skip to content

Commit

Permalink
#1 - Start integrating graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
L committed Nov 21, 2021
1 parent 0fb36bd commit e11c85b
Show file tree
Hide file tree
Showing 4 changed files with 1,783 additions and 1,571 deletions.
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"apollographql.vscode-apollo",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"msjsdiag.vscode-react-native"
]
}
17 changes: 17 additions & 0 deletions packages/web-nextjs/graphql/schema.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { gql } from 'apollo-server-micro'

export const typeDefs = gql`
type Link {
id: String
title: String
description: String
url: String
catagory: String
imageUrl: String
users: [String]
}
type Query {
links: [Link]!
}
`
4 changes: 4 additions & 0 deletions packages/web-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"now-build": "next build"
},
"dependencies": {
"apollo-server-micro": "^3.5.0",
"components": "0.0.1",
"graphql": "^16.0.1",
"micro": "^9.3.4",
"micro-cors": "^0.1.1",
"next": "10.0.2",
"next-transpile-modules": "4.1.0",
"react": "17.0.1",
Expand Down
Loading

0 comments on commit e11c85b

Please sign in to comment.