Skip to content

Conversation

rakhi-prathap
Copy link
Contributor

@rakhi-prathap rakhi-prathap commented Mar 25, 2025

DOC-10871

Added a new OBJECT_CONTACT2 function that takes both plain objects and arrays of objects as inputs.

Preview: https://preview.docs-test.couchbase.com/DOC-10871-object-concat2/server/current/n1ql/n1ql-language-reference/objectfun.html#fn-obj-concat2

Credentials: Preview docs for internal review

Copy link

@dhanyagowrish dhanyagowrish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example provided does not include any arrays of objects as arguments.

Can we please change the example?

An example would be the following query. Which includes an array of objects and an object as the arguments:

select object_concat2({"a":1}, [{"b":2}, {"c":3}, {"d":4}], {"e":5});

Thanks

@rakhi-prathap
Copy link
Contributor Author

The example provided does not include any arrays of objects as arguments.

Can we please change the example?

An example would be the following query. Which includes an array of objects and an object as the arguments:

select object_concat2({"a":1}, [{"b":2}, {"c":3}, {"d":4}], {"e":5});

Thanks

Got it. Have updated the example.

Also, I've replaced the generic a, b, c objects with a flight-related example to maintain consistency with other examples on the page. Made the change for OBJECT_CONCAT() too.

Copy link
Contributor

@RichardSmedley RichardSmedley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@rakhi-prathap rakhi-prathap merged commit 1f74237 into release/7.6 Apr 24, 2025
6 checks passed
@rakhi-prathap rakhi-prathap deleted the DOC-10871-object-concat2-function branch April 24, 2025 04:38
simon-dew added a commit that referenced this pull request Sep 9, 2025
---------

Co-authored-by: rakhi-prathap <rakhi.prathap@couchbase.com>
simon-dew added a commit that referenced this pull request Sep 11, 2025
---------

Co-authored-by: rakhi-prathap <rakhi.prathap@couchbase.com>
sarahlwelton pushed a commit that referenced this pull request Sep 24, 2025
---------

Co-authored-by: rakhi-prathap <rakhi.prathap@couchbase.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants