1.7.1 • Published 2 years ago

ngrx-entity-relationship v1.7.1

Weekly downloads
283
License
Apache-2.0
Repository
github
Last release
2 years ago

chat on gitter npm version build status coverage status language grade

ORM selectors for redux, @ngrx/entity and @ngrx/data and ease of relationships with entities

ngrx-entity-relationship helps to:

  • select relational data from Redux or NGRX stores
  • maintain store with normalized entities
  • quickly build queries for GraphQL

Important links

Very short introduction

The best way is to read documentation, but there is an example below for a quick introduction.

If we want to select a user with its company and with the address of the company, in order that the final object would look like that:

const user = {
  id: '1',
  firstName: 'John',
  lastName: 'Smith',
  companyId: '1',
  company: {
    id: '1',
    name: 'Magic',
    adminId: '2',
    addressId: '1',
    address: {
      id: '1',
      street: 'Main st.',
      city: 'Town',
      country: 'Land',
    },
  },
};

We need to use a selector built by ngrx-entity-relationship for Redux or NGRX like that:

const selectUser = rootUser(
  relUserCompany(
    relCompanyAddress(),
  ),
);

Profit.

What you could do next

Thank you!

1.7.1

2 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.5

3 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.9.4

4 years ago

0.9.3

4 years ago

0.9.6

4 years ago

0.9.5

4 years ago

0.9.0

4 years ago

0.8.1

4 years ago

0.9.2

4 years ago

0.9.1

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.6.3

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.10

4 years ago

0.3.9

4 years ago

0.3.8

4 years ago

0.3.6

4 years ago

0.3.7

4 years ago

0.3.5

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago