@undefineds.co/xpod 0.3.54 → 0.3.55

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.
@@ -1054,6 +1054,10 @@ class PostgresRdfEngine {
1054
1054
  metrics.filtersApplied += query.filters?.length ?? 0;
1055
1055
  metrics.plan.push(`PostgresFactsFilter(${(query.filters ?? []).map(describeFilter).join(',')})`);
1056
1056
  }
1057
+ if ((query.postOptionalBinds?.length ?? 0) > 0) {
1058
+ bindings = this.applyFactsBinds(bindings, query.postOptionalBinds ?? []);
1059
+ metrics.plan.push(`PostgresFactsPostOptionalBind(${(query.postOptionalBinds ?? []).map(describeBind).join(',')})`);
1060
+ }
1057
1061
  if (aggregates.length > 0 && (query.groupBy?.length ?? 0) > 0) {
1058
1062
  const joinedRows = bindings.length;
1059
1063
  bindings = groupAggregateBindings(bindings, query.groupBy ?? [], aggregates);