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

satanTime / ngrx-entity-relationship / 822dd584-4965-4e31-9224-d8106dcb24d3

07 Nov 2023 09:30PM UTC coverage: 100.0%. Remained the same
822dd584-4965-4e31-9224-d8106dcb24d3

Pull #1980

circleci

web-flow
chore(deps): update react monorepo
Pull Request #1980: chore(deps): update react monorepo (patch)

443 of 443 branches covered (100.0%)

Branch coverage included in aggregate %.

680 of 680 relevant lines covered (100.0%)

33.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/libs/ngrx-entity-relationship/graphql/src/lib/toTerm.ts
1
export function toTerm(term: 'query' | 'subscription' | 'mutation', ...args: Array<any>): string {
2
    const params: Array<string> = [];
15✔
3
    let toGraphQL = '';
15✔
4

5
    if (typeof args[0] === 'object') {
15✔
6
        for (const key of Object.keys(args[0] || {})) {
8✔
7
            params.push(`${key}:${args[0][key]}`);
49✔
8
        }
9
        toGraphQL = args[1];
8✔
10
    } else {
11
        toGraphQL = args[0];
7✔
12
    }
13

14
    return `${term}${params.length ? `(${params.join(',')})` : ''}${toGraphQL}`;
15✔
15
}
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

© 2025 Coveralls, Inc