mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
15 lines
330 B
TypeScript
15 lines
330 B
TypeScript
import { GraphQLSchema } from 'graphql'
|
|
import { buildSchema } from 'type-graphql'
|
|
|
|
import resolvers from './resolvers'
|
|
import { isAuthorized } from '../auth/auth'
|
|
|
|
const schema = async (): Promise<GraphQLSchema> => {
|
|
return buildSchema({
|
|
resolvers: resolvers(),
|
|
authChecker: isAuthorized,
|
|
})
|
|
}
|
|
|
|
export default schema
|