big gift
This commit is contained in:
@@ -63,7 +63,8 @@ export class ManagedServiceSchema extends PothosSchema {
|
||||
}));
|
||||
|
||||
this.builder.mutationFields((t) => ({
|
||||
createManagedService: t.field({
|
||||
createManagedService: t.prismaField({
|
||||
description: 'Create a new managed service.',
|
||||
type: this.managedService(),
|
||||
args: {
|
||||
input: t.arg({
|
||||
@@ -72,8 +73,9 @@ export class ManagedServiceSchema extends PothosSchema {
|
||||
description: 'The data for the managed service.',
|
||||
}),
|
||||
},
|
||||
resolve: async (parent, args, context) => {
|
||||
return this.prisma.managedService.create({
|
||||
resolve: async (query, root, args, ctx, info) => {
|
||||
return await this.prisma.managedService.create({
|
||||
...query,
|
||||
data: args.input,
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user