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

Specify fields to be returned #84

Open
dylanitorium opened this issue Nov 20, 2017 · 2 comments
Open

Specify fields to be returned #84

dylanitorium opened this issue Nov 20, 2017 · 2 comments

Comments

@dylanitorium
Copy link

Hey colymba,

Love your work.

I was wondering if you'd accept a PR that extended the Basic Query Handler and Serialiser that would allow the user to specify which fields they would like to be returned, something like:

?__fields=ID,Title or ?__fields[]=ID&__fields[]=Title or both

Cheers!
Dylan

@nimeso
Copy link

nimeso commented Feb 20, 2018

I +1 this, It would really help.

@colymba
Copy link
Owner

colymba commented Feb 21, 2018

Hey @dylanitorium, yes very much interested :)
Since a lot of this sort fo task (filtering fields) have been done in the serialiser which semantically isn't that great. So... let's do it!

Do you know the impact/convention/constraint or using ?__fields=ID,Title or ?__fields[]=ID&__fields[]=Title? I think I had like to stick with just one, and I feel __fields[] is most natural one, but might make the URL length quite long?

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