Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | import { IScore } from '../../../../shared'; import createScore from '../../../scores/createScore'; import GraphQLCreateScore from '../inputs/CreateScore'; import GraphQLScore from '../outputs/Score'; export default { type: GraphQLScore, args: { data: { type: GraphQLCreateScore, }, }, resolve: async ( parent: any, { data }: { data: IScore }, request: Request, ): Promise<any> => { // isAuthorized(request, createArticlePermissions); return createScore(data); }, }; |