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

Limit/Restrict Queryable fields. #59

Open
mapete94 opened this issue Jun 26, 2015 · 1 comment
Open

Limit/Restrict Queryable fields. #59

mapete94 opened this issue Jun 26, 2015 · 1 comment

Comments

@mapete94
Copy link

Is there any way to restrict what fields we will allow users to query? If so would you mind directing me to how to properly do this.

@Jogai
Copy link

Jogai commented Jul 13, 2016

Yes. Create an interface with the properties that are queryable. For example, make only the status queryable:

    public interface IHavingStatus
    {
        ContentStatus Status { get; set; }
    }

    public class Agenda : IHavingStatus
    {
        public int Id { get; set; }
        //All other properties
        public ContentStatus Status { get; set; }
    }

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

2 participants