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

Nested properties without a relationship #229

Closed
scriby opened this issue Jan 6, 2015 · 2 comments
Closed

Nested properties without a relationship #229

scriby opened this issue Jan 6, 2015 · 2 comments
Milestone

Comments

@scriby
Copy link

scriby commented Jan 6, 2015

Hi,

I've been looking through the docs, but I can't tell if restmod supports something like this:

restmod.model().mix({
  property: {
    subProperty: { serialize: 'date' }
  }
});

Can I setup nested properties without specifying a relationship?

@iobaixas
Copy link
Member

iobaixas commented Jan 7, 2015

Yes you can!

restmod.model().mix({
  'property.subProperty': { serialize: 'date' }
});

@iobaixas iobaixas closed this as completed Jan 7, 2015
@iobaixas
Copy link
Member

iobaixas commented Jan 7, 2015

I'm reopening to remember to add this to the docs!

@iobaixas iobaixas reopened this Jan 7, 2015
@iobaixas iobaixas added this to the 1.2 milestone Jan 7, 2015
@iobaixas iobaixas added the ready label Jan 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants