thieu dau ngoac vuong lam gi cang
This commit is contained in:
@@ -95,15 +95,15 @@ export class AppConfigSchema extends PothosSchema {
|
||||
type: [this.appConfig()],
|
||||
description: 'Create multiple app configs',
|
||||
args: {
|
||||
input: t.arg({
|
||||
type: this.builder.generator.getCreateManyInput('Config'),
|
||||
data: t.arg({
|
||||
type: [this.builder.generator.getCreateManyInput('Config')],
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
resolve: async (query, _root, args) => {
|
||||
return await this.prisma.config.createManyAndReturn({
|
||||
...query,
|
||||
data: args.input,
|
||||
data: args.data,
|
||||
})
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user