0

I have a graphql.schema file in my subgraph(GRT)

I try to write a search for 3 entity but the graph accepts one @fulltext type like this:

type _Schema_
  @fulltext(
    name: "ABXsearch"
    language: en
    algorithm: rank
    include: [{entity: "token", fields: [{ name: "id" }, { name: "metadata" }, { name: "name" }] }]
  ) 

but I want to use @fulltext for 3 entity

what should I do?

1 Answer 1

0
    type _Schema_
  @fulltext(
    name: "search1"
    language: en
    algorithm: rank
    include: [{ entity: "yourEntity", fields: [{ name: "name" }] }]
  )
  @fulltext(
    name: "Search2"
    language: en
    algorithm: rank
    include: [{ entity: "yourEntity2", fields: [{ name: "name" }] }]
  )

This is the solution

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.