( location, entitySetId, schema, limit = Query.MAX_LIMIT )
| 60 | } |
| 61 | |
| 62 | export function entitySetEntitiesQuery( |
| 63 | location, |
| 64 | entitySetId, |
| 65 | schema, |
| 66 | limit = Query.MAX_LIMIT |
| 67 | ) { |
| 68 | const context = {}; |
| 69 | if (schema) { |
| 70 | context['filter:schema'] = schema; |
| 71 | } |
| 72 | const path = entitySetId ? `entitysets/${entitySetId}/entities` : undefined; |
| 73 | return Query.fromLocation(path, location, context, 'entities').limit(limit); |
| 74 | } |
| 75 | |
| 76 | export function entitySetItemsQuery( |
| 77 | location, |
no test coverage detected