Closed dmalisani closed 3 years ago
Good question. Easiest way to achieve this now is to use query string or simple query string backends.
Yes, but I cannot use wildcard on these ways right?
@dmalisani:
Yes, you can.
query PostsQuery {
allPostDocuments(
queryString:"(title:*oint) OR (content:Whit*)"
) {
edges {
node {
id
title
category
content
createdAt
comments
}
}
}
}
Where title
and content
are fields here. The *
stands for wildcard. Read the official documentation (wildcard section).
I need to find records which fields description OR searchKeys contain SEARCHED_STRING
but I only achieve AND results