typegql
typegql copied to clipboard
Create GraphQL schema with TypeScript classes.
I try ``` @Mutation({type: Number, description: ''}) public async addSkillsSwToProfile(skillsSwInputDto: [SkillsSwInputDto]): Promise { return 1; } ``` and getting Error: @Type SavageWorlds.addSkillsSwToProfile(skillsSwInputDto
as it was before it was a bit confusing. This example would have worked much better if the TODO left in code about passing the return value was implemented. Then...
Closes https://github.com/prismake/typegql/issues/11 Hey there. First off, great package. I'm really enjoying it. I was hoping this PR would be a great jumping off point for interfaces. Using `extend` very nicely...
currently if you want to handle dates correctly for a field, you need to explicitly use a scalar, like this: ```js @Field({ type: GraphQLDateTime }) created_at: Date ``` since this...
I have a field like this: ```js @Field({ type: UserEventModel }) async inviteUser( @Context ctx: UserSessionModel, userId: number, attending: boolean, sendInviteEmail: boolean = true ): Promise { ... some implementeation...
similar to what type-graphql [has](https://19majkel94.github.io/type-graphql/docs/browser-usage.html). It would be nice to be able to reuse input classes on frontend.
What's the difference between this library and [type-graphql](https://19majkel94.github.io/type-graphql/)?
I've noticed a couple situations that return null rather than the expected value... * Returning 0 for Float/Int * The first enum (because enums start at 0 in TS) *...
Found reference to having defaultValue defined in the docs, but it isn't actually in the code (and I thought it'd be good to use). I figured it should be fairly...