Comment to explain function.
This commit is contained in:
parent
18cca671d4
commit
017b522a3f
|
@ -57,6 +57,8 @@ function userColumnMapping(column: string, options: SearchParams) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// maps through the search parameters to check if any of the inputs are invalid
|
||||||
|
// based on the table schema, converts them to something that is valid.
|
||||||
export function searchInputMapping(table: Table, options: SearchParams) {
|
export function searchInputMapping(table: Table, options: SearchParams) {
|
||||||
for (let [key, column] of Object.entries(table.schema)) {
|
for (let [key, column] of Object.entries(table.schema)) {
|
||||||
switch (column.type) {
|
switch (column.type) {
|
||||||
|
|
Loading…
Reference in New Issue