• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

knorm / relations / 84
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: renovate/pg-8.x
DEFAULT BRANCH: master
Ran 30 Sep 2018 01:17PM UTC
Jobs 1
Files 2
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
84

push

travis-ci

joelmukuthu
feature: support multiple references

```js
class Foo extends Model {}
Foo.fields = { id: 'integer' };

class Bar extends Model {}
Bar.fields = { id: 'integer' };

class Quux extends Model {}
Foo.fields = {
  refId: {
    type: 'integer',
    // multiple references can be defined as an array
    // or as a function that returns an array
    references: [Foo.fields.id, Bar.fields.id]
  }
};

// these fetches would now supported:
Quux.fetch({ join: Foo });
Quux.fetch({ join: Bar });
Foo.fetch({ join: Quux });
Bar.fetch({ join: Quux });
```

94 of 97 branches covered (96.91%)

Branch coverage included in aggregate %.

194 of 194 relevant lines covered (100.0%)

105.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 84.1 30 Sep 2018 01:17PM UTC 0
98.97
Travis Job 84.1
Source Files on build 84
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #84
  • 9319531b on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc