prisma-ts-select 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -757,7 +757,7 @@ Joins through Prisma's implicit or explicit many-to-many junction tables. Automa
|
|
|
757
757
|
##### Example
|
|
758
758
|
```typescript file=../usage-sqlite-v7/tests/readme/join-many-to-many.ts region=m2m-basic
|
|
759
759
|
prisma.$from("M2M_Post")
|
|
760
|
-
.manyToManyJoin("M2M_Category");
|
|
760
|
+
.manyToManyJoin("M2M_Post", "M2M_Category");
|
|
761
761
|
```
|
|
762
762
|
|
|
763
763
|
##### SQL
|
|
@@ -777,7 +777,7 @@ JOIN M2M_Category ON M2M_Category.id = _M2M_CategoryToM2M_Post.A;
|
|
|
777
777
|
##### With Alias
|
|
778
778
|
```typescript file=../usage-sqlite-v7/tests/readme/join-many-to-many.ts region=m2m-alias
|
|
779
779
|
prisma.$from("M2M_Post")
|
|
780
|
-
.manyToManyJoin("M2M_Category mc");
|
|
780
|
+
.manyToManyJoin("M2M_Post", "M2M_Category mc");
|
|
781
781
|
```
|
|
782
782
|
|
|
783
783
|
```sql file=../usage-sqlite-v7/tests/readme/join-many-to-many.ts region=m2m-alias-sql
|
|
@@ -792,7 +792,7 @@ Use `refName` when a model has multiple M2M relations to the same target:
|
|
|
792
792
|
|
|
793
793
|
```typescript file=../usage-sqlite-v7/tests/readme/join-many-to-many.ts region=m2m-refname
|
|
794
794
|
prisma.$from("MMM_Post")
|
|
795
|
-
.manyToManyJoin("MMM_Category", { refName: "M2M_NC_M1" });
|
|
795
|
+
.manyToManyJoin("MMM_Post", "MMM_Category", { refName: "M2M_NC_M1" });
|
|
796
796
|
```
|
|
797
797
|
|
|
798
798
|
```sql file=../usage-sqlite-v7/tests/readme/join-many-to-many.ts region=m2m-refname-sql
|
|
@@ -807,7 +807,7 @@ Use `source` to pin the source alias and column when the source table is aliased
|
|
|
807
807
|
|
|
808
808
|
```typescript file=../usage-sqlite-v7/tests/readme/join-many-to-many.ts region=m2m-source
|
|
809
809
|
prisma.$from("M2M_Post mp")
|
|
810
|
-
.manyToManyJoin("
|
|
810
|
+
.manyToManyJoin("mp", "M2M_Category mc");
|
|
811
811
|
```
|
|
812
812
|
|
|
813
813
|
```sql file=../usage-sqlite-v7/tests/readme/join-many-to-many.ts region=m2m-source-sql
|
|
@@ -1310,8 +1310,8 @@ prisma.$from("User")
|
|
|
1310
1310
|
|
|
1311
1311
|
##### SQL
|
|
1312
1312
|
```sql file=../usage-sqlite-v7/tests/readme/select-all-omit.ts region=single-omit-sql
|
|
1313
|
-
SELECT
|
|
1314
|
-
FROM
|
|
1313
|
+
SELECT id, name, age
|
|
1314
|
+
FROM User;
|
|
1315
1315
|
```
|
|
1316
1316
|
|
|
1317
1317
|
#### Example - Multiple Columns
|