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!
|
statistics: Statistics!
|
||||||
findPosts(filter: String!, limit: Int = 10): [Post]! @cypher(
|
findPosts(filter: String!, limit: Int = 10): [Post]! @cypher(
|
||||||
statement: """
|
statement: """
|
||||||
CALL db.index.fulltext.queryNodes('full_text_search', $filter+'~')
|
CALL db.index.fulltext.queryNodes('full_text_search', $filter)
|
||||||
YIELD node AS node
|
YIELD node
|
||||||
RETURN node
|
RETURN node
|
||||||
ORDER BY node.createdAt DESC
|
|
||||||
LIMIT $limit
|
LIMIT $limit
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user