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
Hi, thank you for building such a great framework! I need to be able to generate mutations that will automatically create _id. This functionality already exists but it builds a...
Each mongooseResolver of findMany, paginated etc supports recursive filtering via the `OR` and `AND` fields. What if we want to remove the recursive filtering functionality for a `findMany` mongoose query?...
I have virtual fields that I can populate on a mongoose model. I'd like to have a resolver that uses populate instead of another resolved query. This is due to...
I am currently using both the graphQL-compose-mongoose with apollo server express and traditional mongoose in my application. Graphql is mainly responsible for query and most of the updates happen through...
Hi, thanks for the great framework .. currently is there anyway to implement this? Implementation in mongoose: https://thecodebarbarian.com/mongoose-4.12-single-embedded-discriminators.html
I have a Schema as follows: ```javascript export const ProductSchema = new Schema( { colours: { type: [ { colour: { type: mongoose.Schema.Types.ObjectId, ref: 'Colour', }, price: { type: String...
Hey! Are there any examples of using this library with apollo datasources? Could it be feasable to use some of the resolvers in a custom datasource if needed?
Let's say I have a Schema like this: ```js const mySchema = new Schema({ foo: [{ type: String }] }] ``` And I want to update an existing Document -...
```js schemaComposer.rootQuery().addFields({ entityMany: EntityTC.mongooseResolvers.findMany().addFilterArg({ name: 'test', type: 'String', description: 'Test', query: (query, value, resolveParams) => { query.name = new RegExp(value, 'i'); }, }); }); ``` When I try to use...
CreatePayload:  CreateInput:  Playground:  ```js const schema = createSchemaFields('User', { name: String, age: Number }) console.log(schema.ModelTC.getType()) schema.ModelTC.addFields({ phone: 'String', createdAt: 'String', }) ```