Is there a way to filter title that contains some text because if i do smthing like:
res = await api.posts.browse({
limit: 5,
filter: `title:'${title}'`,
include: 'tags, authors'
});
It filters with title that are strictly equal to title
Is there a way to filter title that contains some text because if i do smthing like:
res = await api.posts.browse({
limit: 5,
filter: `title:'${title}'`,
include: 'tags, authors'
});
It filters with title that are strictly equal to title
The filter syntax reference can be found here https://ghost.org/docs/content-api/#syntax-reference
Do the contains or starts/ends with operators work for you? E.g.:
filter: `title:~'${title}'`
Exactly what i needed thanks