Redwood v0.37 updates

This commit is contained in:
A. David Thyresson
2021-10-01 16:26:41 -04:00
parent 78db0cc58b
commit f9fd46e710
17 changed files with 2206 additions and 1901 deletions

View File

@@ -1,10 +1,7 @@
import {
createGraphQLHandler,
makeMergedSchema,
makeServices,
} from '@redwoodjs/api'
import { createGraphQLHandler } from '@redwoodjs/graphql-server'
import schemas from 'src/graphql/**/*.{js,ts}'
import directives from 'src/directives/**/*.{js,ts}'
import sdls from 'src/graphql/**/*.sdl.{js,ts}'
import services from 'src/services/**/*.{js,ts}'
import { getCurrentUser } from 'src/lib/auth'
@@ -14,10 +11,10 @@ import { logger } from 'src/lib/logger'
export const handler = createGraphQLHandler({
loggerConfig: { logger, options: {} },
getCurrentUser,
schema: makeMergedSchema({
schemas,
services: makeServices({ services }),
}),
directives,
sdls,
services,
onException: () => {
// Disconnect from your database with an unhandled exception.
db.$disconnect()