Fewer

Fewer

  • Getting Started
  • API
  • Github
  • Help

›API Reference

Introduction

  • Getting Started
  • Installation
  • Create an Association

Adapters

  • Postgres Adapter
  • MySQL Adapter

Advanced Topics

  • Multiple Databases

API Reference

  • API Reference
  • Database
  • Repository
  • Associations
  • Custom Pipes

Associations

Associations can be used to create connections between repositories.

createBelongsTo(baseRepo, foreignKey): Association

Arguments

  • baseRepo (Repository): The repository that associated assets will be loaded with.
  • foreignKey (string): A key that is used to load the entities. When calling Repository#load() or Repository#join(), TypeScript will expect the foreign key to exist in the repository.

createHasOne(baseRepo, associateRepo, foreignKey): Association

TypeScript will expect the foreignKey to exist on the associateRepo.

Arguments

createHasMany(baseRepo, associateRepo, foreignKey): Association

TypeScript will expect the foreignKey to exist on the associateRepo.

Arguments

Association Methods

TODO

← RepositoryCustom Pipes →
Fewer
Docs
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Community
Stack OverflowProject ChatTwitter
More
GitHubStar
Copyright © 2019