Field decorator does not support getters
See original GitHub issueI’ve been using typegql with objection.js for a little while now and I have couple of getters in my codebase. Would it be possible to support them? Currently typegql is throwing when I try to put @Field
on a getter.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Getters and setters applied through a decorator don't get ...
Getters and setters applied through a decorator don't get called when decorated property is also initialized. #2655.
Read more >Why does @foo.setter in Python not work for me?
Clearly the first call works as expected, since I call the getter, and there is no default value, and it fails. OK, good,...
Read more >The @property Decorator in Python: Its Use Cases ...
By using @property, you can "reuse" the name of a property to avoid creating new names for the getters, setters, and deleters. These...
Read more >Using Property Decorators in Typescript with a real example
The getter returns the value of the property himself. let value : string; //the getter of the property to return the value. const...
Read more >How To Use Decorators in TypeScript - DigitalOcean
Decorators are a way to decorate members of a class, or a class itself, with extra functionality. This tutorial covers creating decorators ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
works 👍
@pie6k awesome 🎉 so fast 🌪️ As soon as NPM let’s me install that version I’ll try it out. Been having issues whole day.