(entityId, properties, limit = Query.LARGE)
| 176 | } |
| 177 | |
| 178 | export function entityExpandQuery(entityId, properties, limit = Query.LARGE) { |
| 179 | const context = { 'filter:property': properties }; |
| 180 | const path = entityId ? `entities/${entityId}/expand` : undefined; |
| 181 | return new Query(path, {}, context, 'expand').limit(limit); |
| 182 | } |
| 183 | |
| 184 | export function entityReferencesQuery(entityId) { |
| 185 | return entityExpandQuery(entityId, [], 0); |
no test coverage detected