Skip to content

Commit

Permalink
fix: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
psteinroe committed Mar 13, 2024
1 parent 406ea61 commit f0f9077
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/postgrest-core/src/fetch/dedupe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export const dedupeGroupedPathsRecursive = (
const dedupeCounters = new Map<string, number>();

return grouped.map((p, idx, a) => {
// never dedupe non-nested paths because even if there is a duplicate we always want to dedupe the nested path instead
// e.g. inbox_id,inbox_id(name) should be deduped to inbox_id,d_0_inbox_id:inbox_id(name)
if (!isNestedPath(p)) return p;

// dedupe current nested path if there is another path with the same `path`
Expand Down

0 comments on commit f0f9077

Please sign in to comment.