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

Ability to filter nested fields in datasource #329

Closed
mingard opened this issue Sep 25, 2017 · 1 comment
Closed

Ability to filter nested fields in datasource #329

mingard opened this issue Sep 25, 2017 · 1 comment
Assignees

Comments

@mingard
Copy link
Contributor

mingard commented Sep 25, 2017

Currently, I'm unable to filter specific fields of a Reference object. Either, or both of the following would be great.

Options 1: dot notation

{
  "datasource": {
    "key": "books",
    "name": "Books",
    "source": {
      "endpoint": "1.0/publisher/books"
    },
    "paginate": 1,
    "count": 1,
    "fields": {
      "title": 1,
      "lead_image.url": 1,
      "lead_image.title": 1
    }
  }
}

Options 1: nested params

{
  "datasource": {
    "key": "books",
    "name": "Books",
    "source": {
      "endpoint": "1.0/publisher/books"
    },
    "paginate": 1,
    "count": 1,
    "fields": {
      "title": 1,
      "lead_image": {
        "title": 1,
        "url": 1
      } 
    }
  }
}
@jimlambie
Copy link
Contributor

Should already be possible - will investigate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants