Hello, I looking for opinions. Use back end searc...
# prisma-whats-new
b
Hello, I looking for opinions. Use back end search to avoid indexing things or that is for a single user's eyes only or index it all for Algolia? -Thanks
n
@brad.barnes hey, could you describe what kind of search you're looking for?
b
@nilan Single model, texton multiple fields, doesn't need to be instant or have auto complete.
n
ok but how exactly should the search work for the multiple fields? does the user specify values for each field separately?
b
@nilan Could if they needed to. I was thinking something like this from the graphql docs assuming the search works in graphcool: { search(text: "an") { ... on Human { name height } ... on Droid { name primaryFunction } ... on Starship { name length } } }
n
there is no special search API at Graphcool, you would rather refer to the available filters
Copy code
query {
  allMessages(filter: {
    text_contains: "search term"
  }) {
    id
  }
}
b
@nilan Thanks