-
Notifications
You must be signed in to change notification settings - Fork 7
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 to Limiting Relation? #12
Comments
@radiegtya you can contoll it when publishing/subscribing to ProjectMembers (paged subscribing chunk by chunk) |
then the one which is limiting is ProjectMembers it self. not the user inside it?? both.js
server.js
client.js
|
Yes, that will return 5 priject members only (with user data). |
(tou can also combine with "skip" option (and youll need to pass skip and limit as arguments to publish, and sort in the same order both at client and at server). |
The case is not that simple. How if i just want to fetch 3 users related to
projectMembers, and sorted by username ascending. Because if you said that
simply limit by projectMembers, the user will be randomly fetched by
projectMembers._id asc
…On Saturday, 3 December 2016, Petar Korponaić ***@***.***> wrote:
@radiegtya <https://github.com/radiegtya> you can contoll it when
publishing/subscribing to ProjectMembers (paged subscribing chunk by chunk)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACD71j18gkhd0V8gIvkbi1XyFSxnR1Gkks5rEZI-gaJpZM4LDVRe>
.
|
Just wanna ask how to limit fetched relations?
for example if the relational table has 1000+ rows.
for example:
Projects
Meteor.users
ProjectMembers
then ProjectMembers may have so many users inside
The text was updated successfully, but these errors were encountered: