(location, entity, reference)
| 186 | } |
| 187 | |
| 188 | export function entityReferenceQuery(location, entity, reference) { |
| 189 | const context = { |
| 190 | [`filter:properties.${reference?.property?.name}`]: entity?.id, |
| 191 | 'filter:schemata': reference?.schema, |
| 192 | }; |
| 193 | const path = |
| 194 | entity?.id && reference?.schema && reference?.property |
| 195 | ? 'entities' |
| 196 | : undefined; |
| 197 | return Query.fromLocation(path, location, context, reference?.property?.name); |
| 198 | } |
| 199 | |
| 200 | export function profileExpandQuery(profileId, properties, limit = Query.LARGE) { |
| 201 | const context = { 'filter:property': properties }; |
no test coverage detected