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

Using dynamo mapped object type property attributes #27

Open
tyronedougherty opened this issue May 4, 2016 · 4 comments
Open

Using dynamo mapped object type property attributes #27

tyronedougherty opened this issue May 4, 2016 · 4 comments

Comments

@tyronedougherty
Copy link

tyronedougherty commented May 4, 2016

Hi, does anyone know how to use attributes that are Maps in DynamoDB with waterline?

The JSON type doesn't appear to work 😕

Many thanks to anyone who may be able to help!

@tyronedougherty
Copy link
Author

Correct me if I'm wrong but after much digging, it appears that JSON types are not supported?

Line 1126 of index.js (_setColumnType):

case "array":  // not support
          schema.StringSet(name, options);
          break;

             //case "json":
             //case "string":
             //case "binary":
        case "string":
             ....

Is there any chance of supporting JSON attributes in the near future?

@devinivy
Copy link
Collaborator

devinivy commented May 5, 2016

Definitely would take a PR!

@tyronedougherty
Copy link
Author

Thanks for clarifying @devinivy, in my quick assessment it seems like it may be a significant update and may require updating the vogels package (which is currently very out of date).

@devinivy
Copy link
Collaborator

devinivy commented May 5, 2016

Yeah, this module needs a makeover. Some day I'll have the time to do it, but for the time being I can just support by reviewing PRs.

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

No branches or pull requests

2 participants