How to set startKey and endKey?

Okay…

it’s not ‘startKey’…it’s ‘startkey’ and I had to construct the string myself.

$startKey = “[”{$id}"]";

is there a better way?