Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled type: Array #90

Closed
derkweijers opened this issue May 21, 2019 · 14 comments
Closed

Unhandled type: Array #90

derkweijers opened this issue May 21, 2019 · 14 comments
Assignees

Comments

@derkweijers
Copy link

I have a couple of properties in my mongoose model that are Arrays. Right now, I get a lot of warnings: Unhandled type: Array. I'm not sure if I missed something in the configuration or if the way I use arrays are not supported (yet).

Example from the model:
ArrayOfNumbers: [Number]

@wojtek-krysiak
Copy link
Contributor

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

@anurupr
Copy link

anurupr commented Jun 25, 2019

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.

@DyaryRaoof
Copy link

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

@derkweijers
Copy link
Author

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.

@anurupr
Copy link

anurupr commented Aug 15, 2019

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

@ekrmh
Copy link

ekrmh commented Aug 18, 2019

Is there an development in the issue?

@wojtek-krysiak wojtek-krysiak self-assigned this Aug 21, 2019
@wojtek-krysiak
Copy link
Contributor

yes - I am working on it right now

wojtek-krysiak added a commit that referenced this issue Aug 25, 2019
@wojtek-krysiak
Copy link
Contributor

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

@DyaryRaoof
Copy link

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

@wojtek-krysiak
Copy link
Contributor

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

@Chukstart
Copy link

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

@mopcweb
Copy link

mopcweb commented Oct 22, 2019

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

@sharath-mallikarjuna
Copy link

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

@sharath-mallikarjuna
Copy link

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants