We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Does not work with decorators of "type-graphql" Even if aplying
The text was updated successfully, but these errors were encountered:
You're going to have to be more specific. A minimal reproducible example would be helpful.
Sorry, something went wrong.
Let's say we have the following code snipet from "type-graphql"
` import { Field, Int, ObjectType } from 'type-graphql'; import { Mixin, decorate } from 'ts-mixer';
@ObjectType() class Foo { @decorate(Field()) fooTitle: string;
@decorate(Field(type => [Rate])) fooRatings: Rate[];
@decorate(Field({ nullable: true })) fooAverageRating?: number; }
......
@ObjectType() class Bar { @decorate(Field()) barTitle: string;
@decorate(Field(type => [Rate])) barRatings: Rate[];
@decorate(Field({ nullable: true })) barAverageRating?: number; }
@ObjectType() class MyClass extends Mixin(Foo, Bar) {} `
This code "MyClass" does not seem to apply the parent decorator "Field" properties
@decorate should be used for class decorators as well as field decorators. If you make that change, does it work for you?
@decorate
Does not work either
No branches or pull requests
Does not work with decorators of "type-graphql"
Even if aplying
The text was updated successfully, but these errors were encountered: