fix(database,functions): custom endpoint CONTAIN op and PUT route mapping#1503
Merged
Conversation
…ping Restore CONTAIN comparison semantics for custom endpoints and map PUT function inputs to UPDATE routes instead of falling through to GET.
kkopanidis
force-pushed
the
fix/bug-batch-database-functions
branch
from
June 21, 2026 15:34
6efeeb5 to
5cba8f3
Compare
Op 8 already matches default array-contains semantics; remove the erroneous $nin branch instead of duplicating the default arm.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Custom endpoint comparison operation 8 was documented as array-contains but generated the same
$ninquery as operation 7, so filters never matched documents whose array fields include a value. Functions declared withinputs.method: 'PUT'also registered as GET routes becausegetOperationonly handled theUPDATEalias.$ninbranch so CONTAIN uses the default direct-equality queryPUTthe same asUPDATEwhen registering function routesWhat kind of change does this PR introduce?
Does this PR introduce a breaking change?
The PR fulfills these requirements:
mainbranchTest plan
inputs.method: 'PUT'and confirm the router exposes PUT on the function path