feat: implement AI suggestion
This commit is contained in:
@@ -143,25 +143,6 @@ export class ServiceSchema extends PothosSchema {
|
||||
@Pothos()
|
||||
init() {
|
||||
this.builder.queryFields((t) => ({
|
||||
testServices: t.prismaConnection(
|
||||
{
|
||||
description: 'A test connection for services',
|
||||
type: this.service(),
|
||||
cursor: 'id',
|
||||
args: this.builder.generator.findManyArgs('Service'),
|
||||
resolve: async (query, _root, _args, _ctx, _info) => {
|
||||
return await this.prisma.service.findMany({
|
||||
...query,
|
||||
})
|
||||
},
|
||||
totalCount: (query) => {
|
||||
return this.prisma.service.count({
|
||||
...query,
|
||||
})
|
||||
},
|
||||
},
|
||||
{},
|
||||
),
|
||||
services: t.prismaField({
|
||||
description: 'Retrieve a list of services with optional filtering, ordering, and pagination.',
|
||||
type: [this.service()],
|
||||
|
||||
Reference in New Issue
Block a user