mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
20 lines
595 B
TypeScript
Executable File
20 lines
595 B
TypeScript
Executable File
import { GraphQLSchema } from 'graphql'
|
|
import { buildSchema } from 'type-graphql'
|
|
|
|
import { AccountResolver } from './resolver/AccountsResolver'
|
|
import { TransactionResolver } from './resolver/TransactionsResolver'
|
|
|
|
export const schema = async (): Promise<GraphQLSchema> => {
|
|
return buildSchema({
|
|
resolvers: [TransactionResolver, AccountResolver],
|
|
validate: {
|
|
validationError: { target: false },
|
|
skipMissingProperties: true,
|
|
skipNullProperties: true,
|
|
skipUndefinedProperties: false,
|
|
forbidUnknownValues: true,
|
|
stopAtFirstError: true,
|
|
},
|
|
})
|
|
}
|