Hi,
the Draft.queryByTitle() API currently returns every draft containing the passed string in the title.
I have to manually filter out matches with “more” than the provided string in the title.
Would be nice to have e.g. an optional parameter to force exact matches for the title.
1 Like
Maybe. I will consider it. There’s always Draft.query
to fall back on for specific needs, however. This would perform an exact title match query for the title “test” using a regular expression query string:
let found = Draft.query(`/^test$.*/`, "all");
1 Like
Thanks you can close this post if you want