fix slop code, by slop066543614 hours ago21 lines · 783 B | 1 | import { Args, Mutation, Resolver } from '@nestjs/graphql'; |
| 2 | import { AllowAnonymous } |
| 3 | |
| 4 | import type { GithubViewer |
| 5 | import { Viewer } |
| 6 | import * as M |
| 7 | import { RepositoryMutationsService } |
| 8 | |
| 9 | @Resolver() |
| 10 | @AllowAnonymous() |
| 11 | export class RepositoryMutationsResolver |
| 12 | constructor(private readonly |
| 13 | |
| 14 | @Mutation(() => |
| 15 | createRepository( |
| 16 | @Args('input' |
| 17 | @Viewer() viewer |
| 18 | ) { |
| 19 | return this.mutations |
| 20 | } |
| 21 | } |
from
'
@thallesp/nestjs-better-auth
'
;
}
from
'
../../../auth/github-request.js
'
;
from
'
../../../auth/viewer.decorator.js
'
;
from
'
../../types/mutations.type.js
'
;
from
'
./repository-mutations.service.js
'
;
{
mutations
:
RepositoryMutationsService
)
{}
M
.
CreateRepositoryPayload
,
{
nullable
:
true
}
)
)
input
:
M
.
CreateRepositoryInput
,
:
GithubViewer
|
null
,
.
createRepository
(
input
,
viewer
)
;