Open RKIjaz opened 7 years ago
hey @khurramijaz666, I just downloaded this package and I included my "model" into this file: https://github.com/gerardobort/mongorilla/blob/master/config/experimental.json
mongoose
helps handling DB connectivity (connect, query, update, ...) but I this package has it's own way to communicate with DB, so if what you are trying to mount mongorilla
on top of your existent mongodb collection
is:
a) make sure MONGORILLA_MONGO_URL
is set
MONGORILLA_MONGO_URL=mongodb://localhost/collectionName
b) include your 'collection name' into: https://github.com/gerardobort/mongorilla/blob/master/config/default.json so that the user gets permissions
c) enable collection here: https://github.com/gerardobort/mongorilla/blob/master/config/experimental.json so that GUI knows what to render/search
Hope this helps
PD. I just found about this package, hope this helps.
how to use existing mongoose model with mongrilla?