@regexp vs @trigram

No, trigram is internal to Dgraph. It’s a technique used to create index, by breaking up the string.

So all you need is: @search(by: [regexp]).