Closed
Description
The documents having "id as field name not getting populated with the correct value in the response via spring-data Couchbase.
The stored value for id field is getting replaced with document meta().id when we fetch data using the query below.
@query("SELECT * FROM #{#n1ql.bucket} WHERE id = $1")
Example:
Below is the Document data stored in Couchbase: (meta().id => c00994b8-b547-4388-a549-e1543edbd9c8)
{
"id": "eeb7afa9-3ada-483d-ac1a-7efcf6e7b232",
“name”: “John”
}
Response object retrieved via NQL query above:
{
"id": "c00994b8-b547-4388-a549-e1543edbd9c8",
“name”: “John”
}