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
Hello I wrote a collection for audit but I want a simple way to insert all logs in it any help please ?
I am facing a issue with stitching types . ``` const remoteQuery = TypeComposer.create(executableSchema._queryType); const mutation = TypeComposer.create(executableSchema._mutationType); const subscription = TypeComposer.create(executableSchema._subscriptionType); GQC.rootQuery().addFields({ ...remoteQuery.getFields() }); GQC.rootMutation().addFields({ ...mutation.getFields() }); GQC.rootSubscription().addFields({ ...subscription.getFields()...
Hi @nodkz, I just started working on a knex adapter for graphql-compose and was looking into graphql-compose-mongoose source. Would it not be cleaner and better to use TypeComposers as main...
Hi! First of all thanks for the library. What about publishing info about `beforeRecordMutate`? Or at least to know that it will not be subject to change.
I'm getting an unexpected token here. Any idea? I'm using the latest version of node (10). My import statement looks like this.... import composeWithMongoose, { convertSchemaToGraphQL } from 'graphql-compose- mongoose/node8';...
in this [example](https://graphql-compose.herokuapp.com/user/?query=%0A%7B%0A%20%20userMany(filter%3A%20%7B%20gender%3A%20male%20%7D%2C%20limit%3A%205%2C%20sort%3A%20_ID_ASC)%20%7B%0A%20%20%20%20name%0A%20%20%20%20languages%20%7B%0A%20%20%20%20%20%20language%0A%20%20%20%20%20%20skill%0A%20%20%20%20%7D%0A%20%20%20%20contacts%20%7B%0A%20%20%20%20%20%20email%0A%20%20%20%20%7D%0A%20%20%20%20gender%0A%20%20%20%20age%0A%20%20%7D%0A%7D%0A%20%20%20%20%20%20) how to get value of skill for English language skills only not list all languages skills ??
OK. Ive been trying for hours now to get the right combination of `addRelation`, `addFields` and `addFilterArg` functions and I cannot seem to figure out how to allow for recursive(deep)...
Suppose I have subsets on a document like so, friends : [ {userId: string, meta: {}},... ] Where meta contains discriminator for the type of friend How whould I create...
@bakuzan wrote in [#93](https://github.com/graphql-compose/graphql-compose-mongoose/issues/93#issuecomment-367636883): > I gave this a try and it works great when using field filters, but custom filter arguments, ones added with `resolver.addFilterArg()`, aren't being picked up...
There seems to be no defined way to use $or operators in filters. Can you suggest the proper way of adding a resolver for such case? I imagine that the...