profile: guery profile (minimal)

This commit is contained in:
arswarog committed 2026-11-16 17:26:19 +03:00
1 parent 86b09a79e2
commit 643e8521eb
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()
export class ProfileResolver {}
export class ProfileResolver {
@Query(() => ProfileDto)
async profile(): Promise<ProfileDto> {
return {
firstName: 'Евгений',
lastName: 'Лубяной',
};
}
}