I have variable filter
that holds a string that represents a function:
const filter = `equalsFilter('elements.url_pattern', ${urlPattern})`
I want to chain it on another object like this:
query.filter
of course, this doesn't work because the filter is a string. Essentially I'm aiming for this result:
query.equalsFilter('elements.url_pattern', urlPattern)
How can I achieve somewhat like described above?