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

Comments

Projects
None yet
3 participants
@mingard
Copy link
Member

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
      } 
    }
  }
}

@mingard mingard closed this Sep 25, 2017

@mingard mingard reopened this Oct 25, 2017

@jimlambie

This comment has been minimized.

Copy link
Member

jimlambie commented Mar 14, 2018

Should already be possible - will investigate

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