Skip to content

Commit

Permalink
docs: fix description of _empty filter fields
Browse files Browse the repository at this point in the history
Lists can never be null in cruddl. It also does not make sense to treat null as non-empty, and it was not the case.
  • Loading branch information
Yogu committed Sep 18, 2024
1 parent 40ae3ff commit 3af4db7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/schema-generation/filter-input-types/filter-fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class EmptyListFilterField implements FilterField {

constructor(public readonly field: Field) {
this.name = this.field.name + '_empty';
this.description = `Checks if \`${this.field.name}\` is an empty list (true) or a non-empty list or null (false).`;
this.description = `Checks if \`${this.field.name}\` is an empty list (true) or a non-empty list (false).`;
}

getFilterNode(sourceNode: QueryNode, filterValue: AnyValue): QueryNode {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export class FlexSearchEmptyListFilterField implements FlexSearchFilterField {

constructor(public readonly field: Field) {
this.name = this.field.name + '_empty';
this.description = `Checks if \`${this.field.name}\` is an empty list (true) or a non-empty list or null (false).`;
this.description = `Checks if \`${this.field.name}\` is an empty list (true) or a non-empty list (false).`;
}

getFilterNode(
Expand Down

0 comments on commit 3af4db7

Please sign in to comment.