Can we set expiry using n1ql

Initial while creating a document, I have set expiry for 10 min(600seconds) and later on updating some fields in document using n1ql.
document is not expiring, I taught expiration is overwritten by 0 while updating again.
can we set the expiry using the n1ql ???
suggest me if any alternative solution.
using 4rco, PHP SDK.