budibase/packages/core/src/collectionApi/index.js

12 lines
378 B
JavaScript
Raw Normal View History

2019-07-15 08:12:52 +02:00
import { getAllIdsIterator } from '../indexing/allIds';
import { getAllowedRecordTypes } from './getAllowedRecordTypes';
import { deleteCollection } from './delete';
export const getCollectionApi = app => ({
getAllowedRecordTypes: getAllowedRecordTypes(app),
getAllIdsIterator: getAllIdsIterator(app),
delete: deleteCollection(app),
});
export default getCollectionApi;