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

How can you limit amount of child? #670

Open
yukitoto opened this issue Jul 21, 2016 · 4 comments
Open

How can you limit amount of child? #670

yukitoto opened this issue Jul 21, 2016 · 4 comments

Comments

@yukitoto
Copy link

yukitoto commented Jul 21, 2016

I want to limit child amount.

object false
child @chat_groups, root: :chat_groups, object_root: false do
  child :messages, root: :messages, object_root: false do
    attributes :id
  end
end
@krzysiek1507
Copy link

@yukitoto could you explain?

@yukitoto
Copy link
Author

yukitoto commented Jul 21, 2016

ChatGroup has many Messages.
I want to limit messages limit to 40.
if use above snippet, all messages will send.
But I don't know how to limit messages.

@yukitoto
Copy link
Author

@krzysiek1507 Where you need more explanation?

@ieglonew01f
Copy link

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

3 participants