Column name uppercase /lowercase

Where is the setting to force the column titles to be lowercase consistently? I get inconsistent cases when upserting records: sometimes ‘Key’ and some other time ‘key’

Identifiers/fields in N1QL are case-sensitive by default. What ever the field names in JOSN it keeps them. As part of the explicit alias what ever it aliased it takes. N1QL will not modify any of those to upper/lower.