graphql-compose-mongoose
graphql-compose-mongoose copied to clipboard
Mongoose model converter to GraphQL types with resolvers for graphql-compose https://github.com/nodkz/graphql-compose
in my custom schema I want to return a type `User` that is generated by graphql-compose-mongoose from my User mongoose model. i've tried ordering these differently but the problem persists...
I added a relation as below on `Item` ``` ItemTC.addRelation( 'category', { resolver: () => CategoryTC.mongooseResolvers.findOne(), prepareArgs: { filter: (source) => ({ _id: source.categoryId, }), }, projection: { categoryId: 1...
Hello everybody, I'm creating resolvers for my User schema like this: `schemaComposer.Mutation.addFields({ userCreateOne: UserTC.mongooseResolvers.createOne(), userCreateMany: UserTC.mongooseResolvers.createMany(), userUpdateById: UserTC.mongooseResolvers.updateById(), userUpdateOne: UserTC.mongooseResolvers.updateOne(), userUpdateMany: UserTC.mongooseResolvers.updateMany(), userRemoveById: UserTC.mongooseResolvers.removeById(), userRemoveOne: UserTC.mongooseResolvers.removeOne(), userRemoveMany: UserTC.mongooseResolvers.removeMany() });` I...
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...
I need to learn more in this library Do you have any forum /mailing list /gitter /discord or slack channel for asking questions?
I have Doc and User schema. How to get Doc query with User included (not just id, but the all user properties)? For example I call to get all doc...
The v9.0.0 release brought a lot of new features to `graphql-compose-mongoose`; however, it doesn't look like they're implemented for discriminator types. Are there any plans to add this? If so,...
It was a pretty wild ride to get my local copy properly linked with my local dev app. I had to yarn link: - `graphql-compose` - `graphql-compose-mongoose` - `graphql-compose-pagination` -...
I have a base `Post` schema and `Discussion`, `Job`, `Event` and `Notice` discriminator schemas built on `Post`. I've added different custom fields and relations to these TypeComposers, but I want...
I've been trying to wrap the "findMany" resolver with a simple filter on an existing field from the Schema, but the traditional approach from the graphql-compose page on [wrapResolve()](https://graphql-compose.github.io/docs/basics/what-is-resolver.html#via-resolverwrapresolve) does...