INNER CODE UNIT · TypeScript
askForDatabase
prisma-labs/graphql-framework-experiment · src/cli/commands/create/app.ts:262
async function askForDatabase(): Promise<DatabaseSelection> {
let {
usePrisma,
}: {
usePrisma?: boolean
} = await prompts({
type: 'confirm',
name: 'usePrisma',
message: 'Do you want to use a database? (https://prisma.io)',
})
if (usePrisma === undefined) {
return 'sigtermed'
}
if (usePrisma === false) {
return null
}