You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into some issues with populating sub-documents -- namely, if you issue more than one populate request in the query, the settings for the populate requests clobber each other (with the last one taking precedence).
Would result in nokids.user fields being populated, since none match the condition on kids.post.
I fixed it by saving the query parameters for each sub-path instead of just storing the first query paramaters found and marking sub-paths as existent.
I ran into some issues with populating sub-documents -- namely, if you issue more than one populate request in the query, the settings for the populate requests clobber each other (with the last one taking precedence).
Would result in nokids.user fields being populated, since none match the condition on kids.post.
I fixed it by saving the query parameters for each sub-path instead of just storing the first query paramaters found and marking sub-paths as existent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I ran into some issues with populating sub-documents -- namely, if you issue more than one populate request in the query, the settings for the populate requests clobber each other (with the last one taking precedence).
For example:
Would populate the
kids.postfine but not populatenameonkids.user. (titlewould be present onkids.userifuserhappened to have that field).Same for conditions:
Would result in no
kids.userfields being populated, since none match the condition onkids.post.I fixed it by saving the query parameters for each sub-path instead of just storing the first query paramaters found and marking sub-paths as existent.