@ruiapp/rapid-core 0.10.8 → 0.10.9
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/dist/index.js +5 -2
- package/package.json +1 -1
- package/src/dataAccess/entityManager.ts +5 -2
package/dist/index.js
CHANGED
|
@@ -3008,6 +3008,7 @@ async function findManyRelationLinksViaLinkTable(options) {
|
|
|
3008
3008
|
singularCode: relationModel.singularCode,
|
|
3009
3009
|
});
|
|
3010
3010
|
const findEntityOptions = {
|
|
3011
|
+
routeContext,
|
|
3011
3012
|
filters: [
|
|
3012
3013
|
{
|
|
3013
3014
|
field: "id",
|
|
@@ -3046,11 +3047,12 @@ async function findManyRelationLinksViaLinkTable(options) {
|
|
|
3046
3047
|
return { relationLinks, targetEntities };
|
|
3047
3048
|
}
|
|
3048
3049
|
async function findManyRelatedEntitiesViaIdPropertyCode(options) {
|
|
3049
|
-
const { server, relationProperty, mainEntityIds, selectRelationOptions } = options;
|
|
3050
|
+
const { server, routeContext, relationProperty, mainEntityIds, selectRelationOptions } = options;
|
|
3050
3051
|
const dataAccessor = server.getDataAccessor({
|
|
3051
3052
|
singularCode: relationProperty.targetSingularCode,
|
|
3052
3053
|
});
|
|
3053
3054
|
const findEntityOptions = {
|
|
3055
|
+
routeContext,
|
|
3054
3056
|
filters: [
|
|
3055
3057
|
{
|
|
3056
3058
|
field: relationProperty.selfIdColumnName,
|
|
@@ -3091,11 +3093,12 @@ async function findManyRelatedEntitiesViaIdPropertyCode(options) {
|
|
|
3091
3093
|
return await findEntities(server, dataAccessor, findEntityOptions);
|
|
3092
3094
|
}
|
|
3093
3095
|
async function findOneRelatedEntitiesViaIdPropertyCode(options) {
|
|
3094
|
-
const { server, relationProperty, relationEntityIds, selectRelationOptions } = options;
|
|
3096
|
+
const { server, routeContext, relationProperty, relationEntityIds, selectRelationOptions } = options;
|
|
3095
3097
|
const dataAccessor = server.getDataAccessor({
|
|
3096
3098
|
singularCode: relationProperty.targetSingularCode,
|
|
3097
3099
|
});
|
|
3098
3100
|
const findEntityOptions = {
|
|
3101
|
+
routeContext,
|
|
3099
3102
|
filters: [
|
|
3100
3103
|
{
|
|
3101
3104
|
field: "id",
|
package/package.json
CHANGED
|
@@ -652,6 +652,7 @@ async function findManyRelationLinksViaLinkTable(options: FindManyRelationEntiti
|
|
|
652
652
|
});
|
|
653
653
|
|
|
654
654
|
const findEntityOptions: FindEntityOptions = {
|
|
655
|
+
routeContext,
|
|
655
656
|
filters: [
|
|
656
657
|
{
|
|
657
658
|
field: "id",
|
|
@@ -695,12 +696,13 @@ async function findManyRelationLinksViaLinkTable(options: FindManyRelationEntiti
|
|
|
695
696
|
}
|
|
696
697
|
|
|
697
698
|
async function findManyRelatedEntitiesViaIdPropertyCode(options: FindManyRelationEntitiesOptions) {
|
|
698
|
-
const { server, relationProperty, mainEntityIds, selectRelationOptions } = options;
|
|
699
|
+
const { server, routeContext, relationProperty, mainEntityIds, selectRelationOptions } = options;
|
|
699
700
|
const dataAccessor = server.getDataAccessor({
|
|
700
701
|
singularCode: relationProperty.targetSingularCode as string,
|
|
701
702
|
});
|
|
702
703
|
|
|
703
704
|
const findEntityOptions: FindEntityOptions = {
|
|
705
|
+
routeContext,
|
|
704
706
|
filters: [
|
|
705
707
|
{
|
|
706
708
|
field: relationProperty.selfIdColumnName,
|
|
@@ -744,13 +746,14 @@ async function findManyRelatedEntitiesViaIdPropertyCode(options: FindManyRelatio
|
|
|
744
746
|
}
|
|
745
747
|
|
|
746
748
|
async function findOneRelatedEntitiesViaIdPropertyCode(options: FindOneRelationEntitiesOptions) {
|
|
747
|
-
const { server, relationProperty, relationEntityIds, selectRelationOptions } = options;
|
|
749
|
+
const { server, routeContext, relationProperty, relationEntityIds, selectRelationOptions } = options;
|
|
748
750
|
|
|
749
751
|
const dataAccessor = server.getDataAccessor({
|
|
750
752
|
singularCode: relationProperty.targetSingularCode as string,
|
|
751
753
|
});
|
|
752
754
|
|
|
753
755
|
const findEntityOptions: FindEntityOptions = {
|
|
756
|
+
routeContext,
|
|
754
757
|
filters: [
|
|
755
758
|
{
|
|
756
759
|
field: "id",
|