mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fix search
This commit is contained in:
parent
e7c01d8877
commit
360acdb141
@ -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
|
||||
"""
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user