diff --git a/src/schema.graphql b/src/schema.graphql index ee519fff3..e9b5d5106 100644 --- a/src/schema.graphql +++ b/src/schema.graphql @@ -3,10 +3,9 @@ type Query { statistics: Statistics! findPosts(filter: String!, limit: Int = 10): [Post]! @cypher( statement: """ - CALL db.index.fulltext.queryNodes('full_text_search', $filter+'~') - YIELD node AS node + CALL db.index.fulltext.queryNodes('full_text_search', $filter) + YIELD node RETURN node - ORDER BY node.createdAt DESC LIMIT $limit """ )