Skip to content

I cannot figure out how to do OData queries with Saloon ($ sign in query parameters) #198

Closed Answered by Sammyjo20
dakira asked this question in Q&A
Discussion options

You must be logged in to vote

I believe this is because the query parameters need to be defined as key => value in the array so...

protected function defaultQuery(): array
{
    return [
        '$select' => 'mailNickname,displayName,mail,department,companyName',
        '$expand' => 'manager($select=mailNickname,displayName,mail)',
    ];
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dakira
Comment options

@Sammyjo20
Comment options

Answer selected by Sammyjo20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants