graphql-compose / graphql-compose/graphql-compose-mongoose
Create text search queries
Open
- 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.