profile: guery profile (minimal)

This commit is contained in:
arswarog committed 2026-11-16 17:30:51 +03:00
1 parent 67542ec94c
commit 7d8a583f11
4 files changed
+42 -2

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
/*
* -------------------------------------------------------
* THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
* -------------------------------------------------------
*/
/* tslint:disable */
/* eslint-disable */
export class ProfileDto {
firstName: string;
lastName: string;
}
export abstract class IQuery {
abstract profile(): ProfileDto | Promise<ProfileDto>;
}
type Nullable<T> = T | null;
+1
View File
@@ -0,0 +1 @@
export { ProfileDto } from './profile.dto.js';
+10
View File
@@ -0,0 +1,10 @@
import { Field, ObjectType } from '@nestjs/graphql';
@ObjectType()
export class ProfileDto {
@Field()
firstName: string;
@Field()
lastName: string;
}
+11 -2
View File
@@ -1,4 +1,13 @@
import { Resolver } from '@nestjs/graphql'; import { Resolver, Query } from '@nestjs/graphql';
import { ProfileDto } from './dto/index.js';
@Resolver() @Resolver()
export class ProfileResolver {} export class ProfileResolver {
@Query(() => ProfileDto)
async profile(): Promise<ProfileDto> {
return {
firstName: 'Евгений',
lastName: 'Лубяной',
};
}
}