graphql-compose / graphql-compose/graphql-compose-mongoose

Create text search queries

Open
#215 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
706
Forks
98
PR merge metrics
No merged PRs in 30d

Description

I'm unable to figure out how to create a graphql query for triggering basic mongodb fulltext search.

I have a single field in my mongoose schema as below.

const userSchema = new Schema({
name: String
....

and I have a text index on it.

userSchema.index({ name: 'text'});

And while I do see the index being constructed in my mongodb, I can't see anything in my graphql playground that would resolve to a $text query.

I was unable to find this in the documentation for graphql-compose-mongoose either. Maybe I'm missing something?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.