Comments (14)
Hello,
Thanks for awesome tool.
I managed to got into some trouble using this tool:
There is no opportunity to use Array or Object type in schema.
Is there any plans for providing this functionality ?
Thanks
from adminjs.
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.
thanks! I also added nested schemas with version 1.1.0, so it should work.
from adminjs.
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.
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.
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.
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.
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.
Is there an development in the issue?
from adminjs.
yes - I am working on it right now
from adminjs.
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.
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.
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.
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)
- [Bug]: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of `Edit`. HOT 1
- [Bug]: @adminjs/relations many-to-many with Prisma HOT 2
- [Bug]: Filter UI issue HOT 1
- [Feature]: @adminjs/relations remove "delete record" option HOT 2
- [Bug]: AdminJs/Relations One to Many TypeError: Cannot read properties of null (reading 'type') HOT 5
- [Bug]: AdminJs/relations and Prisma Many to Many with undefined references causes `Argument in: Invalid value provided` HOT 1
- [Feature]: 2FA on login? HOT 2
- [Bug]: inputs in Modals lose focus every key press
- [Bug]: Bulk action doesn't trigger a list refresh HOT 1
- [Bug]: I have 2 dropdowns, is there any way to filter out data in 2nd dropdown on the basis of value selected in 1st dropdown in Admin JS library? HOT 10
- [Bug]: edit page does not shows the files I uploaded previously HOT 5
- [Bug]: Image in Rich Text Editor not showing when I try re-editing
- [Bug]: adminjs/cli `unable to resolve dependency tree` project init falied for nestjs with typeorm and postgres HOT 2
- [Bug]: Not able to build after adding admin-bro HOT 1
- [Feature]: how i can redirect to url from actions handler HOT 1
- [Bug]: Errors during transpile HOT 1
- Want to add new list option without url and want on click event on that HOT 1
- How to update mongoDB with custom component in list HOT 1
- [Feature]: Auto refresh table data based perdiocally HOT 1
- Can't see console.log HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adminjs.