I would want to be able to disable conversion for this selected column or data type e.q. jsonb either on the pluguin level, or ideally on the query level if it would be possible.
new CamelCasePlugin({ skipDataTypes: ["json", "jsonb"] })
// or
new CamelCasePlugin({ skipColumns: ["customFields"] })
Kysely doesn't know about data types. We don't know something's json or jsonb. Skipping by column name would be possible, but only if you don't alias the column.
Hello,
The
CamelCasePlugin
options allow disabling conversion to camel case on all nested objects https://kysely-org.github.io/kysely-apidoc/interfaces/CamelCasePluginOptions.html#maintainNestedObjectKeys, however i don't find this quite useful as for example we might want to keep conversion on nested objects e.q. included byjsonArrayFrom
,jsonObjectFrom
helpers but we might not want to convert somejsonb
column data.For example we could have a
custom_fields
jsonb column where object keys are actual values (in this case, related entity ids)I would want to be able to disable conversion for this selected column or data type e.q.
jsonb
either on the pluguin level, or ideally on the query level if it would be possible.