Skip to content

Commit

Permalink
Allow omitting cardinality when creating query key
Browse files Browse the repository at this point in the history
Signed-off-by: Anuraag Agrawal <[email protected]>
  • Loading branch information
anuraaga committed Nov 26, 2024
1 parent d007559 commit 3e1613d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/connect-query-core/src/connect-query-key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ type KeyParams<Desc extends DescMethod | DescService> = Desc extends DescMethod
/**
* Set `cardinality` in the key - undefined is used for filters to match both finite and infinite queries.
*/
cardinality: "finite" | "infinite" | undefined;
cardinality?: "finite" | "infinite" | undefined;
/**
* If omit the field with this name from the key for infinite queries.
*/
Expand All @@ -110,7 +110,7 @@ type KeyParams<Desc extends DescMethod | DescService> = Desc extends DescMethod
/**
* Set `cardinality` in the key - undefined is used for filters to match both finite and infinite queries.
*/
cardinality: "finite" | "infinite" | undefined;
cardinality?: "finite" | "infinite" | undefined;
};

/**
Expand Down

0 comments on commit 3e1613d

Please sign in to comment.