OverwriteModelError: Cannot overwrite model once compiled. When already defined in Mongoose | PayloadCMS v3.1.0 #9533
Unanswered
AshKetshup
asked this question in
Q&A
Replies: 1 comment
-
Update: I've been looking into Accessing Mongoose Models through Payload and tried to apply them. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm using Payload v3.1.0 with MongoDB so I can manage a few collections and in the same server i'm also managing with mongoose directly some schemas and models that coexist with Payload collections. One of them is my
languages
model.Defined by the following through Mongoose:
And later as a Payload Collection:
Although during compilation Payload says that it can't overwrite. My intentions are in fact for using the same Model both in Payload and Mongoose. Do you think there's a way to do this? If so, how?
Beta Was this translation helpful? Give feedback.
All reactions