Ottoman using existing models

Hello,

I’m trying to use Ottoman with Couchbase Enterprise 6.0.0. The query doesn’t return any data when I try to use a model that is registered as shown here: Model | Ottoman.js.

If I simply use

const User = model('User', { name: string });

it will work only on the 1st request and 2nd request onwards it gives the error “model is already registered”.

Any help would be appreciated. Please let me know if you need further information from me.

Thanks,
Aakshaye M Gaikar

Hello @aakshaye more than happy to help. Can we start our communication on the GitHub Issues for Ottoman ? This way there are more developers there who can answer your question.

Regarding your query, can you please share your GitHub repo for us to investigate ?
See you on Ottoman GitHub

1 Like