graphql-compose-mongoose
graphql-compose-mongoose copied to clipboard
Provide collection name from request
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)?