(location, entityId)
| 142 | } |
| 143 | |
| 144 | export function entitySimilarQuery(location, entityId) { |
| 145 | const path = entityId ? `entities/${entityId}/similar` : undefined; |
| 146 | return Query.fromLocation(path, location, {}, 'similar').defaultFacet( |
| 147 | 'collection_id', |
| 148 | true |
| 149 | ); |
| 150 | } |
| 151 | |
| 152 | export function profileSimilarQuery(location, profileId) { |
| 153 | const path = profileId ? `profiles/${profileId}/similar` : undefined; |
no test coverage detected