Skip to content

Use relationships as navigations in sparse field queries #584

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

Merged
merged 4 commits into from
Oct 22, 2019

Conversation

maurei
Copy link
Member

@maurei maurei commented Oct 17, 2019

This PR makes the sparse field selection syntax consistent. Only articles?fields[ RELATIONHIP_PATH ] is now allowed. See #583.

When the old syntax is used, eg articles?fields[articles]=title, a constructive error message is generated: Should be "articles?fields=title".

Closes #583

@wisepotato wisepotato merged commit 928ac1e into dev-v4 Oct 22, 2019
@wisepotato wisepotato deleted the fix/sparse-field-navigation branch October 22, 2019 14:11
@maurei maurei mentioned this pull request Oct 23, 2019
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants