You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, we are using a new decorator called `@OneToOne`. It allows us to create a one-to-one relationship between two entities.
794
-
`type => Photo` is a function that returns the class of the entity with which we want to make our relationship.
795
-
We are forced to use a function that returns a class, instead of using the class directly, because of the language specifics.
796
-
We can also write it as `() => Photo`, but we use `type => Photo` as a convention to increase code readability.
797
-
The type variable itself does not contain anything.
798
-
799
-
We also add a `@JoinColumn` decorator, which indicates that this side of the relationship will own the relationship.
793
+
Here, we are using a new decorator called `@OneToOne`. It allows us to create a one-to-one relationship between two entities. We also add a `@JoinColumn` decorator, which indicates that this side of the relationship will own the relationship.
800
794
Relations can be unidirectional or bidirectional.
801
795
Only one side of relational can be owning.
802
796
Using `@JoinColumn` decorator is required on the owner side of the relationship.
Copy file name to clipboardExpand all lines: docs/data-source-options.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ Different RDBMS-es have their own specific options.
103
103
104
104
## `mysql` / `mariadb` data source options
105
105
106
-
-`url` - Connection url where perform connection to. Please note that other data source options will override parameters set from url.
106
+
-`url` - Connection url where the connection is performed. Please note that other data source options will override parameters set from url.
107
107
108
108
-`host` - Database host.
109
109
@@ -164,7 +164,7 @@ Different RDBMS-es have their own specific options.
164
164
165
165
## `postgres` / `cockroachdb` data source options
166
166
167
-
-`url` - Connection url where perform connection to. Please note that other data source options will override parameters set from url.
167
+
-`url` - Connection url where the connection is performed. Please note that other data source options will override parameters set from url.
168
168
169
169
-`host` - Database host.
170
170
@@ -244,7 +244,7 @@ Different RDBMS-es have their own specific options.
244
244
## `mssql` data source options
245
245
Based on [tedious](https://tediousjs.github.io/node-mssql/) MSSQL implementation. See [SqlServerConnectionOptions.ts](..\src\driver\sqlserver\SqlServerConnectionOptions.ts) for details on exposed attributes.
246
246
247
-
-`url` - Connection url where perform connection to. Please note that other data source options will override parameters set from url.
247
+
-`url` - Connection url where the connection is performed. Please note that other data source options will override parameters set from url.
248
248
249
249
-`host` - Database host.
250
250
@@ -398,7 +398,7 @@ Based on [tedious](https://tediousjs.github.io/node-mssql/) MSSQL implementation
398
398
399
399
## `mongodb` data source options
400
400
401
-
-`url` - Connection url where perform connection to. Please note that other data source options will override parameters set from url.
401
+
-`url` - Connection url where the connection is performed. Please note that other data source options will override parameters set from url.
0 commit comments