Git Product home page Git Product logo

Comments (14)

mopcweb avatar mopcweb commented on May 20, 2024 3

Hello,

Thanks for awesome tool.

I managed to got into some trouble using this tool:
image

image

There is no opportunity to use Array or Object type in schema.

Is there any plans for providing this functionality ?

Thanks

from adminjs.

wojtek-krysiak avatar wojtek-krysiak commented on May 20, 2024 2

arrays are not supported (yet) - you have to override this property in resource options. But let's leave this issue - we will be implementing this in the following weeks probably

from adminjs.

wojtek-krysiak avatar wojtek-krysiak commented on May 20, 2024 1

thanks! I also added nested schemas with version 1.1.0, so it should work.

from adminjs.

sharath-mallikarjuna avatar sharath-mallikarjuna commented on May 20, 2024 1

Hi @wojtek-krysiak
I've got this fixed by defining the schema in a right way as mentioned here
https://github.com/SoftwareBrothers/admin-bro-example-app/blob/master/mongoose/complicated-model.js
And it works perfectly. Thank you :)

from adminjs.

anurupr avatar anurupr commented on May 20, 2024

can you explain how to override this property? I'm using the same configuration for another project (rest-hapi to be specific) . i don't mind using a workaround till it is implemented.

from adminjs.

DyaryRaoof avatar DyaryRaoof commented on May 20, 2024

having the same issue. its been 2 month since the last post that anurupr wrote and i am still getting the same error

from adminjs.

derkweijers avatar derkweijers commented on May 20, 2024

Apologies for my late response. For now I've decided to go with Keystone since this was blocking for me and I didn't had the time to write my own component. Hope this will be fixed in the future so I can come back.

from adminjs.

anurupr avatar anurupr commented on May 20, 2024

i was able to modify the core to handle arrays and it did work for my use case but not sure if it is production ready. i think with sufficient testing , it can be made that way. i can have a fork ready in a day or two. quite held up at the moment

from adminjs.

ekrmh avatar ekrmh commented on May 20, 2024

Is there an development in the issue?

from adminjs.

wojtek-krysiak avatar wojtek-krysiak commented on May 20, 2024

yes - I am working on it right now

from adminjs.

wojtek-krysiak avatar wojtek-krysiak commented on May 20, 2024

I am happy to announce that arrays support for mongoose adapter was added in AdminBro v1.1.0 with AdminBroMongoose v0.3.0

from adminjs.

DyaryRaoof avatar DyaryRaoof commented on May 20, 2024

Thank you @wojtek-krysiak . Admin-bro is terrific. Is there a plan for adding support for objects with multiple levels of nested variables ?

from adminjs.

Chukstart avatar Chukstart commented on May 20, 2024

I am happy to announce that arrays support for mongoose adapter was added in AdminBro v1.1.0 with AdminBroMongoose v0.3.0
I'm still getting this error and I'm using the latest version 1.1.4

from adminjs.

sharath-mallikarjuna avatar sharath-mallikarjuna commented on May 20, 2024

Hi @wojtek-krysiak
Is there a fix for the above issue of handling Arrays and Objects?
The issue is still persists in the latest version

from adminjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.