-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GraphQL support #324
Comments
As I've not used it yet, have no insight about it. Can you tell me which points of |
I'm still getting to grips with Nestia, but is looks awesome. Here are my inconveniences with input validations in GQL in NestJS: NestJS has a great GraphQL plugin to minimize the overhead in declaring DTOs; https://docs.nestjs.com/graphql/cli-plugin. This cleans up the number of decorators to create a GraphQL schema (in a code-first approach). GraphQL is already typed, as in, it knows when you set the input as an import { Field, InputType, Int } from '@nestjs/graphql';
import { IsInt, IsOptional, Max, Min } from 'class-validator';
@InputType()
export class CreateEntityInput {
/** Number items */
@Field(() => Int)
@IsInt() // Should ideally not be needed as we already told @Field that it is an Int
@Min(0)
@Max(100)
@IsOptional() // Should ideally not be needed as it is already marked as ?:`
readonly numberOfItems?: number; // The ?: is picked up by the GraphQL CLI plugin and makes the field optional
} |
Understood. Reading At first, I will make Until those step, I recommend you to use [ |
Thanks @samchon GraphQL would be awesome for us too! |
I am using the GraphQL schema-first approach. Would migrating my application to Nestia be worth it, or is a majority of the performance boost available to traditional REST API applications? |
@elijaholmos where are you using GraphQL and where REST? Client-Server and/or Server-Server? |
@L-U-C-K-Y I have a GraphQL API running server-side. My frontend client communicates with this GraphQL API over HTTPS. REST is not used anywhere in my application. |
As I have many features to develop, this feature may start from 2023-08. ASAP, I'll write my open source development roadmap describing my projects and their processes. Until that, if you have any good idea about new interface, please tell me. |
Thank you that will be great |
This is my schedule, and will try to finish this feature in October or November. |
Do you plan to have GraphQL support?
The text was updated successfully, but these errors were encountered: