DocumentField uses ConstantsTrait
Field names returned by ArangoDB through the document API (`/_api/document/{collection}` and `/_api/document/{collection}/{key}`) on top of the reserved attributes already covered by {@see \org\schema\constants\Schema}.
Mostly carries the two optional payload fields exposed by the server when the request opts into them:
new(whenreturnNew: truewas requested on insert / update / replace),old(whenreturnOld: truewas requested on update / replace / remove).
Tags
Table of Contents
Constants
- NEW : string = 'new'
- Field carrying the full new document payload in the response (only present when the request was sent with `returnNew: true`).
- OLD : string = 'old'
- Field carrying the full previous document payload in the response (only present when the request was sent with `returnOld: true`).
Constants
NEW
Field carrying the full new document payload in the response (only present when the request was sent with `returnNew: true`).
public
string
NEW
= 'new'
OLD
Field carrying the full previous document payload in the response (only present when the request was sent with `returnOld: true`).
public
string
OLD
= 'old'