How to add TTL in N1QL query



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?


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