allowing airtable query to send down the number of records you want from your table
This commit is contained in:
parent
07e888fc10
commit
bc7cc089b8
|
@ -61,9 +61,11 @@ async function enrichQueryFields(fields, parameters) {
|
||||||
if (typeof fields[key] === "object") {
|
if (typeof fields[key] === "object") {
|
||||||
// enrich nested fields object
|
// enrich nested fields object
|
||||||
enrichedQuery[key] = await enrichQueryFields(fields[key], parameters)
|
enrichedQuery[key] = await enrichQueryFields(fields[key], parameters)
|
||||||
} else {
|
} else if (typeof fields[key] === "string") {
|
||||||
// enrich string value as normal
|
// enrich string value as normal
|
||||||
enrichedQuery[key] = await processString(fields[key], parameters)
|
enrichedQuery[key] = await processString(fields[key], parameters)
|
||||||
|
} else {
|
||||||
|
enrichedQuery[key] = fields[key]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,10 @@ const SCHEMA = {
|
||||||
type: FIELD_TYPES.STRING,
|
type: FIELD_TYPES.STRING,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
numRecords: {
|
||||||
|
type: FIELD_TYPES.NUMBER,
|
||||||
|
default: 10,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
update: {
|
update: {
|
||||||
|
|
Loading…
Reference in New Issue