question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Field decorator does not support getters

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
capajcommented, May 22, 2018

works 👍

0reactions
capajcommented, May 22, 2018

@pie6k awesome 🎉 so fast 🌪️ As soon as NPM let’s me install that version I’ll try it out. Been having issues whole day.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found