Skip to content

Commit

Permalink
Upgrade to v0.19.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterp committed Sep 18, 2020
1 parent 6c01f7a commit 357c3e9
Show file tree
Hide file tree
Showing 6 changed files with 6,773 additions and 3,504 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ yarn-error.log
.env
.DS_Store
.wip
.redwood

api/prisma/dev.sqlite
packages/photon/runtime
Expand Down
2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"name": "api",
"version": "0.0.0",
"dependencies": {
"@redwoodjs/api": "0.9.1"
"@redwoodjs/api": "0.19.0"
}
}
25 changes: 12 additions & 13 deletions api/src/functions/graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@ import {
makeMergedSchema,
makeServices,
} from '@redwoodjs/api'
import importAll from '@redwoodjs/api/importAll.macro'

import schemas from 'src/graphql/**/*.{js,ts}'
import services from 'src/services/**/*.{js,ts}'
import { db } from 'src/lib/db'

const schemas = importAll('api', 'graphql')
const services = importAll('api', 'services')

export const handler = createGraphQLHandler(
{
schema: makeMergedSchema({
schemas,
services: makeServices({ services }),
}),
},
db
)
export const handler = createGraphQLHandler({
schema: makeMergedSchema({
schemas,
services: makeServices({ services }),
}),
onException: () => {
// Disconnect from your database with an unhandled exception.
db.$disconnect()
}
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"web"
],
"devDependencies": {
"@redwoodjs/core": "0.7.0"
"@redwoodjs/core": "0.19.0"
},
"eslintConfig": {
"extends": "@redwoodjs/eslint-config"
Expand Down
4 changes: 2 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"name": "web",
"version": "0.0.0",
"dependencies": {
"@redwoodjs/router": "0.9.1",
"@redwoodjs/web": "0.9.1",
"@redwoodjs/router": "0.19.0",
"@redwoodjs/web": "0.19.0",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
Expand Down
Loading

0 comments on commit 357c3e9

Please sign in to comment.