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.

FilteredModuleAttributes in 1.0

See original GitHub issue

Is there a reason the arguments for getDataValue() are restricted to those few in https://github.com/RobinBuschmann/sequelize-typescript/blob/1.0.0/lib/model/types/FilteredModelAttributes.ts#L4 ?

I can no longer use this.getDataValue('somethingElese') because of this and sadly, I cannot find any changelog that explains this breaking change.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
RobinBuschmanncommented, Jun 18, 2018

@lookapanda Sry for the delayed reply: So it throws here:

  @Column({
        type: DataType.STRING(2),
        defaultValue: DEFAULT_LANGUAGE,
        get(this: UserSetting) {
            const language = this.getDataValue('language'); // <---- throws here?
            if (!language) {
                return DEFAULT_LANGUAGE;
            }

            return language;
        },
    })

?

0reactions
Ponjimoncommented, Jun 18, 2018

It did, but as I said, I’m doing it in another way and it works fine now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Target Attributes Filter | Drupal.org
Add or enforce the target attribute on hyperlinks through text format filtering. Choose the target attribute value and whether it applies to ...
Read more >
Filter Effects Module Level 1 - W3C
All raster effect filtering operations take 1 to N input RGBA images, additional attributes as parameters, and produce a single output RGBA ...
Read more >
Filtering modules - IBM
You can filter modules on the value of attributes, and on the presence or absence of links. If the current view includes filters...
Read more >
Filter by Attribute Module - OpenCart
This module enables customers to filter the currently viewed products by their attributes. If the customer is not browsing a category, ...
Read more >
filter - MuleSoft Documentation
items. The array to filter. ; criteria. Boolean expression that selects an item and/or index .
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