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
Take a look at the code blocks below. In the first code block, the `myMiddleware` never executes. The reason I added the `withMiddlewares` property inside that object is because it's...
Hello! Let's suppose that we've got the below 2 resolvers: ``` { userById: UserTC.mongooseResolvers.findById(), userGetMe: UserTC.addResolver({ name:"userGetMe", args: {}, type: User, resolve: (_,__,context) => { const {auth} = context; const...
This is my token verification code (this code is working find for the Rest API)  and this one is the place I put the code to do a verification....
When I upgrade to version 9.0 The relay plugin throw error ``` throw new Error(`ObjectTypeComposer(${tc.getTypeName()}) should have recordIdFn. ` + 'This function returns ID from provided object.'); ``` This is...
The new major 9.0.0 version of graphql-compose-mongoose will introduce a new process for resolver creation. Before 9.0.0 all resolvers were created on `composeWithMongoose` method call. But starting from 9.0.0 introduced...
Hi, first of all thanks to Pavel for implementing the issue I sent him via Twitter Direct. What I want to acchieve is the ability to check for permissions before...
I have such a model. Schema composer: ```typescript import { SchemaComposer } from "graphql-compose" export const schemaComposer = new SchemaComposer(); ``` Mongo model: ```typescript import moongose, { Schema, Document, Model,...
Hi! I need to wrap a resolver with a new extended one and I need to set a custom input with this wrapper This is what I've got: ```` const...
I have a schema that looks like - ``` let jobSchema = mongoose.Schema({ jobuuid: { type: String }, type: { type: String }, jobDetails: { type: Types.Mixed }, jobOptions: {...
Right now a mongodb enum is turned into a GraphQL enum, which will change all unknown characters to underscores as far as I can tell. How can I disable this...