* Fix ARRAY_CONTAINS panic when partial match arg is omitted
The NoSQL parser always emits a third (nil) argument for the optional
partial-match flag of ARRAY_CONTAINS. The executor checked only
len(arguments) > 2 before type-asserting arguments[2] to
parsers.SelectItem, which panicked on the nil value whenever the query
omitted the partial-match argument (e.g. ARRAY_CONTAINS(c.arr, 2)).
Guard the type assertion with a nil check and add an API test covering
ARRAY_CONTAINS with and without the optional partial-match argument.
Co-authored-by: Pijus Kamandulis <pikami@users.noreply.github.com>
* Remove comments from ARRAY_CONTAINS API test
Co-authored-by: Pijus Kamandulis <pikami@users.noreply.github.com>
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
* check isUpsert header in POST document request
* Verify response code on "CreateItem that already exists" test
---------
Co-authored-by: Pijus Kamandulis <pikami@users.noreply.github.com>