How to create array field in mongo db and django using djongo?

I am facing difficulty in creating arrayfield in mongo db with django… I am using djongo for mongodb and django connection… Can’t we simply create array field without creating model container…

Hi :wave: @Swapnil_Joshi,

Welcome to the MongoDB Community forums :sparkles:

Could you share what particular error message you are getting while doing this? Can you share the code snippet for the same?

You can refer to the Djongo documentation on how to create an array field in MongoDB.


1 Like