Skip to content

Commit 3904697

Browse files
Issue #39 - Update ConditionInput to accept NULL value. Updated docs
1 parent 64a4fbf commit 3904697

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/search-parameters.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ evaluated against the search backend.
103103
|----------|----------|--------|-------------------------------------------------------------------------------------------------------------------------|
104104
| `operator` | no | `String` | The operator allows us to specify the evaluation expression. All Search API conditions are supported. Some common examples: `=`, `<>`, `>`, `<`, `>=`, `<=`. |
105105
| `name` | yes | `String` | The name defines what field in the index to be evaluated against this condition. |
106-
| `value` | yes | `String` | The value to be valuated against the specified field and operator. | |
106+
| `value` | no | `String` | The value to be valuated against the specified field and operator. Leave it empty if you want to compare with NULL | |
107107

108108
### Example
109109
Returns the all results with type of course.

src/Plugin/GraphQL/InputTypes/ConditionInput.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* name = "ConditionInput",
1313
* fields = {
1414
* "name" = "String!",
15-
* "value" = "String!",
15+
* "value" = "String",
1616
* "operator" = "String"
1717
* }
1818
* )

0 commit comments

Comments
 (0)