How to use the @keystonejs/fields-auto-increment.AutoIncrement.primaryKeyDefaults function in @keystonejs/fields-auto-increment

To help you get started, we’ve selected a few @keystonejs/fields-auto-increment examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github keystonejs / keystone / packages / adapter-knex / lib / adapter-knex.js View on Github external
getDefaultPrimaryKeyConfig() {
    // Required here due to circular refs
    const { AutoIncrement } = require('@keystonejs/fields-auto-increment');
    return AutoIncrement.primaryKeyDefaults[this.name].getConfig(this.client);
  }

@keystonejs/fields-auto-increment

KeystoneJS AutoIncrement Field Type

MIT
Latest version published 4 years ago

Package Health Score

54 / 100
Full package analysis

Popular @keystonejs/fields-auto-increment functions

Similar packages