@aws-amplify/graphql-relational-transformer
Advanced tools
Comparing version 2.3.6 to 2.4.0-implicit-fields.0
@@ -6,2 +6,12 @@ # Change Log | ||
# [2.4.0-implicit-fields.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-relational-transformer@2.3.6...@aws-amplify/graphql-relational-transformer@2.4.0-implicit-fields.0) (2024-02-07) | ||
### Bug Fixes | ||
- use correct subscription type ([be35600](https://github.com/aws-amplify/amplify-category-api/commit/be3560026efdd29a7b4bd1433e805508a552c8d6)) | ||
### Features | ||
- add implicit relational fields to subscription filter input ([628b4ee](https://github.com/aws-amplify/amplify-category-api/commit/628b4eee6224c5fb976250bd93d1be7ddc9cd4dd)) | ||
## [2.3.6](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-relational-transformer@2.3.5...@aws-amplify/graphql-relational-transformer@2.3.6) (2024-02-05) | ||
@@ -8,0 +18,0 @@ |
@@ -105,2 +105,7 @@ "use strict"; | ||
} | ||
const subscriptionFilterInputName = (0, graphql_transformer_core_1.getSubscriptionFilterInputName)(object.name.value); | ||
const filterSubscriptionInput = ctx.output.getType(subscriptionFilterInputName); | ||
if (filterSubscriptionInput) { | ||
updateFilterConnectionInputWithConnectionFields(ctx, filterSubscriptionInput, object, connectionAttributeName, primaryKeyConnectionFieldType, field, sortKeyFields); | ||
} | ||
config.connectionFields.push(connectionAttributeName); | ||
@@ -161,2 +166,7 @@ config.connectionFields.push(...(0, graphql_transformer_core_1.getSortKeyFieldNames)(relatedType).map((it) => (0, utils_1.getSortKeyConnectionAttributeName)(object.name.value, field.name.value, it))); | ||
} | ||
const subscriptionFilterInputName = (0, graphql_transformer_core_1.getSubscriptionFilterInputName)(object.name.value); | ||
const filterSubscriptionInput = ctx.output.getType(subscriptionFilterInputName); | ||
if (filterSubscriptionInput) { | ||
updateFilterConnectionInputWithConnectionFields(ctx, filterSubscriptionInput, object, connectionAttributeName, primaryKeyConnectionFieldType, field, sortKeyFields); | ||
} | ||
}; | ||
@@ -163,0 +173,0 @@ exports.ensureHasManyConnectionField = ensureHasManyConnectionField; |
{ | ||
"name": "@aws-amplify/graphql-relational-transformer", | ||
"version": "2.3.6", | ||
"version": "2.4.0-implicit-fields.0", | ||
"description": "Amplify GraphQL relational modeling transformers", | ||
@@ -31,13 +31,13 @@ "repository": { | ||
"dependencies": { | ||
"@aws-amplify/graphql-index-transformer": "2.3.5", | ||
"@aws-amplify/graphql-model-transformer": "2.4.5", | ||
"@aws-amplify/graphql-transformer-core": "2.4.5", | ||
"@aws-amplify/graphql-transformer-interfaces": "3.3.3", | ||
"@aws-amplify/graphql-index-transformer": "2.3.6-implicit-fields.0", | ||
"@aws-amplify/graphql-model-transformer": "2.5.0-implicit-fields.0", | ||
"@aws-amplify/graphql-transformer-core": "2.5.0-implicit-fields.0", | ||
"@aws-amplify/graphql-transformer-interfaces": "3.4.0-implicit-fields.0", | ||
"graphql": "^15.5.0", | ||
"graphql-mapping-template": "4.20.14", | ||
"graphql-transformer-common": "4.28.0", | ||
"graphql-mapping-template": "4.20.15-implicit-fields.0", | ||
"graphql-transformer-common": "4.28.1-implicit-fields.0", | ||
"immer": "^9.0.12" | ||
}, | ||
"devDependencies": { | ||
"@aws-amplify/graphql-transformer-test-utils": "0.4.5" | ||
"@aws-amplify/graphql-transformer-test-utils": "0.4.6-implicit-fields.0" | ||
}, | ||
@@ -65,3 +65,3 @@ "peerDependencies": { | ||
"global": { | ||
"branches": 77, | ||
"branches": 76, | ||
"functions": 90, | ||
@@ -75,5 +75,11 @@ "lines": 90 | ||
], | ||
"testEnvironment": "../../FixJestEnvironment.js" | ||
"testEnvironment": "../../FixJestEnvironment.js", | ||
"collectCoverageFrom": [ | ||
"src/**/*.ts" | ||
], | ||
"coveragePathIgnorePatterns": [ | ||
"/__tests__/" | ||
] | ||
}, | ||
"gitHead": "9791c1ae7481483371655cad20a1179286c01018" | ||
"gitHead": "d3c8f090361933fc72f45ddef935529bf3b0611d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
340636
2231
2
9
+ Added@aws-amplify/graphql-index-transformer@2.3.6-implicit-fields.0(transitive)
+ Added@aws-amplify/graphql-model-transformer@2.5.0-implicit-fields.0(transitive)
+ Added@aws-amplify/graphql-transformer-core@2.5.0-implicit-fields.0(transitive)
+ Added@aws-amplify/graphql-transformer-interfaces@3.4.0-implicit-fields.0(transitive)
+ Addedgraphql-mapping-template@4.20.15-implicit-fields.0(transitive)
+ Addedgraphql-transformer-common@4.28.1-implicit-fields.0(transitive)
- Removed@aws-amplify/graphql-index-transformer@2.3.5(transitive)
- Removed@aws-amplify/graphql-model-transformer@2.4.5(transitive)
- Removed@aws-amplify/graphql-transformer-core@2.4.5(transitive)
- Removed@aws-amplify/graphql-transformer-interfaces@3.3.3(transitive)
- Removedgraphql-mapping-template@4.20.14(transitive)
- Removedgraphql-transformer-common@4.28.0(transitive)
Updated@aws-amplify/graphql-index-transformer@2.3.6-implicit-fields.0
Updated@aws-amplify/graphql-model-transformer@2.5.0-implicit-fields.0
Updated@aws-amplify/graphql-transformer-core@2.5.0-implicit-fields.0
Updated@aws-amplify/graphql-transformer-interfaces@3.4.0-implicit-fields.0