Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { Keystone, BaseApp } from '@keystonejs/keystone';
import { PasswordAuthStrategy } from '@keystonejs/auth-password';
import { GraphQLApp } from '@keystonejs/app-graphql';
import { AdminUIApp } from '@keystonejs/app-admin-ui';
import { KnexAdapter as Adapter } from '@keystonejs/adapter-knex';
import { Text, Checkbox, Password, AutoIncrement, CalendarDay, Integer } from '@keystonejs/fields';
import { NextApp } from '@keystonejs/app-next';
import { StaticApp } from '@keystonejs/app-static';
const keystone = new Keystone({
name: 'LiveCorp Backend',
adapter: new Adapter(),
});
keystone.createList('Test', {
fields: {},
access: true,
});
keystone.createList('Test', {
fields: {
autoincrement: { type: AutoIncrement, gqlType: 'ID' },
calendar: {
type: CalendarDay,
format: 'Do MMMM YYYY',
yearRangeFrom: 1901,
yearRangeTo: 2018,
yearPickerType: 'auto',
},