Having to type formula strings when using something like Node.js to interact with the API is super difficult and tedious, especially with more complex queries. Since the formulas are strings the editor can’t provide any syntax correction tips about missing parenthesis or valid/invalid uses of various functions like FIND, AND, etc. Is there any easier way to create these queries? I put an example query I’m trying to create below which I’m completely failing to get working, although I have no idea why because there’s zero syntax feedback. I made it by joining an array of indented strings to provide myself with a little debugging sanity but that only helps so much.
const filterConditions = [
"AND(",
"OR(",
`AND(FIND('${userId}', {uploader}), FIND('${teammateId}', {recipient}))`,
", ",
`AND(FIND('${teammateId}', {uploader}), FIND('${userId}', {recipient}))`,
"), ",
"IS_AFTER({createdAt}, DATETIME_DIFF(TODAY(), -14, 'days'))",
")",
].join('')
