The constraint parameter should be an object e.g.

constraint: {type:"field",id:"title" }

And then in the control we just pass this object through. I know this means users need to understand the constraint syntax but this offers the maximum flexibility and makes our code future proof if Connections extend the constraint object.