Wondering what’s next for npm?Check out our public roadmap! »

    @bigegg/parse-server-schema-config

    1.0.10 • Public • Published
        const modelList = [
        {
            className: 'Subject',
            fields: {
                level1: {
                    type: 'string'
                },
                level2: {
                    type: 'string'
                },
                level3: {
                    type: 'string'
                },
                level4: {
                    type: 'string'
                },
                subject:{
                    name: 'subject',
                    type: 'pointer',
                    targetClass: 'Subject',
                }
    
            }
            CLP: {
                addField: {},
                find: { '*': true },
                count: { '*': true },
                get: { '*': true },
                create: { 'role:admin': true },
                update: { 'role:admin': true },
                delete: { 'role:admin': true },
            },
            indexes: {
                level4_1: { //如果使用postgres 全局不能重复
                    field: { 'level4': 1 }
                    unique: true
                }
            }
        }
    ]
    SchemaConfig.config(modelList)
    

    Keywords

    none

    Install

    npm i @bigegg/parse-server-schema-config

    DownloadsWeekly Downloads

    2

    Version

    1.0.10

    License

    ISC

    Unpacked Size

    14.4 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar