r[ae]ym
ProjectionsSchemaObject

@searchable

You can mark projections as searchable by using the @searchable directive.

You need to configure elasticsearch in your Fraeym installation for this to work. Fraeym uses elasticsearch as the search engine to provide fuzzy search and more.

Example

user.graphql
type User @upsertOn(...) @searchable {
    name: String!
    email: String!
}

In this example the User type will be searchable. Please have a look at the field directives related to search: @facetedSearch, @fullTextSearch and @sortable.

To access the data in the search index, please create your own api key in elasticsearch

On this page