Full-text queries
Run cross-field and cross-entity full-text queries
type Post @entity{
title: String @fulltext(query: "forum"),
body: String @fulltext(query: "forum")
}
type Comment @entity {
text: String @fulltext(query: "forum")
}type SearchResult {
item: Post | Comment,
rank: number,
highlight: String
}
type Query {
forum(text: String, limit?: Int): SearchResult[]
}Last updated