mirror of
https://github.com/strapi/strapi.git
synced 2025-08-15 12:18:38 +00:00
18 lines
328 B
TypeScript
18 lines
328 B
TypeScript
![]() |
import { mapValues, pick } from 'lodash/fp';
|
||
|
|
||
|
const schemaSelectedKeys = [
|
||
|
'collectionName',
|
||
|
'info',
|
||
|
'options',
|
||
|
'pluginOptions',
|
||
|
'attributes',
|
||
|
'kind',
|
||
|
'modelType',
|
||
|
'modelName',
|
||
|
'uid',
|
||
|
'plugin',
|
||
|
'globalId',
|
||
|
];
|
||
|
|
||
|
export const mapSchemasValues = (schemas: any) => mapValues(pick(schemaSelectedKeys), schemas);
|