How to add TTL in N1QL query

query
n1ql

#1

When i using insert or update couchbase nodejs client there is a option to add ttl for a document.

But how can i add ttl option when i using n1ql query (INSERT or UPSERT) function. is there option available?


#2

N1QL queries will not allow modify/set TTLs. You need to use SDKs.