Adds a key/value pair to the ENEQueryInfo object.
Declaration Syntax
Parameters
- key (String)
- The key for the key/value pair to be added to the ENEQueryInfo object.
- val (String)
- The value for the key.
Remarks
An application may call this method as many times
as needed, as each call adds to the key/value pairs being
stored in the ENEQueryInfo object.
This method will discard keys or values that are
NULL or empty strings.
All the key/value pairs will be logged in the Dgraph log when the ENEQueryInfo object is passed to the MDEX Engine with the the QueryInfo setting property.
Note that the current implementation of the basic constructor automatically generates two keys (sid and rid) and their values. This current behavior is deprecated. Therefore, developers should instead generate their own session and query IDs and use this method to override the values of the sid and rid keys.