graphql-compose / graphql-compose-mongoose

Mongoose model converter to GraphQL types with resolvers for graphql-compose https://github.com/nodkz/graphql-compose
MIT License
709 stars 94 forks source link

Provide collection name from request #437

Open chernov-av opened 10 months ago

chernov-av commented 10 months ago

I have multiple collections in mongoDb named "UserData_%some id%". All collections have the same scheme. In "clean" gql+mongoose I can provide collection name by credentials data from resolver. Is there any way to setup collection name for query in wrapResolve (or any other way)?