I am using slash-gql and string types have all the regular search terms and then they have both regexp and trigram.
Can you explain what is the meaning of them and why they both there?
I could only find an explanation on regexp in the docs under the search section
I haven’t seen @regexp or @trigram directive in GraphQL.
It’s @search(by: [regexp])!
Regular expressions require the trigram index. A trigram is a substring of 3 consecutive characters, or runes.
The trigrams of trigram are: tri, rig, igr, gra and ram.
No, they are both the same thing. We support the name trigram to maintain backward compatibility. If trigram appears in Slash GraphQL interface we should fix it to read regexp instead. Tagging @gja