File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ This file contains the changes made to the package.
3
3
4
4
The sections are in descending order of the change date.
5
5
6
+ ## [ 0.1.15] : - 2022-08-20
7
+ ### Fixed
8
+ - ` Array.map ` error during ` *:1 ` relation mapping.
9
+
6
10
## [ 0.1.14] : - 2022-08-16
7
11
### Fixed
8
12
- Prisma Selections for deeply nested objects were not working correctly.
@@ -38,7 +42,8 @@ object.
38
42
The initial version of the package.
39
43
40
44
[ Unreleased ] : https://github.com/incetarik/nestjs-prisma-dynamic-resolvers/compare/v1.0.0...HEAD
41
- [ 0.1.13 ] : https://github.com/incetarik/nestjs-prisma-dynamic-resolvers/compare/0.1.3...0.1.14
45
+ [ 0.1.15 ] : https://github.com/incetarik/nestjs-prisma-dynamic-resolvers/compare/0.1.14...0.1.15
46
+ [ 0.1.14 ] : https://github.com/incetarik/nestjs-prisma-dynamic-resolvers/compare/0.1.13...0.1.14
42
47
[ 0.1.13 ] : https://github.com/incetarik/nestjs-prisma-dynamic-resolvers/compare/0.1.9...0.1.13
43
48
[ 0.1.9 ] : https://github.com/incetarik/nestjs-prisma-dynamic-resolvers/compare/0.1.7...0.1.9
44
49
[ 0.1.7 ] : https://github.com/incetarik/nestjs-prisma-dynamic-resolvers/compare/0.1.6...0.1.7
Original file line number Diff line number Diff line change @@ -435,7 +435,8 @@ abstract class DynamicResolverBase {
435
435
reverseTableName = sourceTableName ,
436
436
} = navigationMap
437
437
438
- const isArray = relation . indexOf ( '*' ) >= 0
438
+ const [ _left , right ] = relation . split ( ':' )
439
+ const isArray = right . indexOf ( '*' ) >= 0
439
440
440
441
if ( sourceProperty in parent ) {
441
442
const data = ( parent as any ) [ sourceProperty ]
You can’t perform that action at this time.
0 commit comments