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

12 lines
373 B
JavaScript
Raw Normal View History

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