graphql-compose-mongoose icon indicating copy to clipboard operation
graphql-compose-mongoose copied to clipboard

Mongoose model converter to GraphQL types with resolvers for graphql-compose https://github.com/nodkz/graphql-compose

Results 116 graphql-compose-mongoose issues
Sort by recently updated
recently updated
newest added

I've been trying to write a query to give me all the documents created in the last week but I couldn't figure out how the operator syntax works. The documentation...

Hi, I'm trying to execute a near query with the following filter : `{"category":null,"viewer":"USER","location":{"$near":{"$geometry":{"type":"Point","coordinates":[10.3222671,36.88911649999999]},"$maxDistance":50000}}}` But I get the following error: ``` graphQl error : Cannot read property 'forEach' of undefined...

released

For backwards compatibility, we need to add a new argument to some of our default resolvers. Right now, out of the box, "LIMIT" is supported- Historically, we used "TAKE" for...

I've defined some fields in my mongoose Schemas like the following: ``` { country: { type: 'String', enum: ['United States', 'Great Britain', ...] } } ``` which apparently doesn't conform...

I'm trying to wrap the findMany resolver to modify its filter before calling it ``` const usersByNameOrMail = userMany.wrapResolve((next => async rp => { const {user} = rp.context const name...

I have in mongoose document collection with an array of documents: ``` export const DocumentsCollection = mongoose.model('Document-Collection', new mongoose.Schema({ name: { type: String }, items: [ { name: { type:...

### Description At the moment, `graphql-compose-mongoose` generates unexpected schema when **the value used for a discriminator key** is _not the same_ as the **model name of the discriminator**. If using...

I'm setting up a new platform that is going to serve two separate GraphQL endpoints, one for internal use and one for the public. The reason is not for authentication,...

Hi, I am just wondering if it's possible to support "like" for text fields in _operators when doing filtering? that will be very useful for my use case. thanks.

Unless I'm wrong, right now there is no way to fetch all results. You can set a really big number for `opts.resolvers.findMany.limit.defaultValue`, but I think that it would be a...