-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Description
Given the following attributes:
"attributes": {
"username": "vivalacrowe",
"private": {
"email": "hello@vivalacrowe.com",
"name": "Rob"
}
}
How do you filter to only get the email address. I've tried:
$params = new \Neomerx\JsonApi\Parameters\EncodingParameters(
null,
[
'user' => ['private.email']
]
);
But this returns:
{
"data": {
"type": "user",
"id": "12287",
"links": {
"self": "https:\/\/api.crowdcube.com\/users\/12287\/followers"
}
}
}
Filtering seems to only work on top level keys?