How to use the prisma-client-lib.makePrismaClientClass function in prisma-client-lib

To help you get started, we’ve selected a few prisma-client-lib 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 prisma / prisma-examples / node / graphql-auth / src / generated / prisma-client / index.js View on Github external
'use strict'
Object.defineProperty(exports, '__esModule', { value: true })
var prisma_lib_1 = require('prisma-client-lib')
var typeDefs = require('./prisma-schema').typeDefs

exports.Prisma = prisma_lib_1.makePrismaClientClass({
  typeDefs,
  endpoint: `http://localhost:4466`,
})
exports.prisma = new exports.Prisma()
github prisma / prisma-examples / node-cli-app / src / prisma-client / index.js View on Github external
'use strict'
Object.defineProperty(exports, '__esModule', { value: true })
var prisma_lib_1 = require('prisma-client-lib')
var typeDefs = require('./prisma-schema').typeDefs

exports.Prisma = prisma_lib_1.makePrismaClientClass({
  typeDefs,
  endpoint: 'http://localhost:4466/cli-tool/default',
})
exports.prisma = new exports.Prisma()
github prisma / prisma-examples / node-rest-express / src / prisma-client / index.js View on Github external
'use strict'
Object.defineProperty(exports, '__esModule', { value: true })
var prisma_lib_1 = require('prisma-client-lib')
var typeDefs = require('./prisma-schema').typeDefs

exports.Prisma = prisma_lib_1.makePrismaClientClass({
  typeDefs,
  endpoint: 'https://eu1.prisma.sh/lol/house/dev',
})
exports.prisma = new exports.Prisma()
github prisma / prisma-examples / node-graphql-schema-delegation / src / prisma-client / index.js View on Github external
'use strict'
Object.defineProperty(exports, '__esModule', { value: true })
var prisma_lib_1 = require('prisma-client-lib')
var typeDefs = require('./prisma-schema').typeDefs

exports.Prisma = prisma_lib_1.makePrismaClientClass({
  typeDefs,
  endpoint: 'https://eu1.prisma.sh/lol/tut/dev',
})
exports.prisma = new exports.Prisma()
github prisma / prisma-examples / node-script / src / prisma-client / index.js View on Github external
'use strict'
Object.defineProperty(exports, '__esModule', { value: true })
var prisma_lib_1 = require('prisma-client-lib')
var typeDefs = require('./prisma-schema').typeDefs

exports.Prisma = prisma_lib_1.makePrismaClientClass({
  typeDefs,
  endpoint: 'https://eu1.prisma.sh/lol/prisma/dev',
})
exports.prisma = new exports.Prisma()
github Gomah / prisma-serverless / src / generated / prisma-client / index.ts View on Github external
},
  {
    name: "User",
    embedded: false
  },
  {
    name: "PasswordMeta",
    embedded: false
  }
];

/**
 * Type Defs
 */

export const Prisma = makePrismaClientClass>({
  typeDefs,
  models,
  endpoint: `${process.env["PRISMA_ENDPOINT"]}`,
  secret: `${process.env["PRISMA_SECRET"]}`
});
export const prisma = new Prisma();
github dooboolab / talktalk-node / prisma / generated / prisma-client / index.js View on Github external
export const models: Model[] = [
  {
    name: "AuthPayload",
    embedded: false
  },
  {
    name: "User",
    embedded: false
  }
];

/**
 * Type Defs
 */

export const Prisma: ClientConstructor = makePrismaClientClass(
  { typeDefs, models, endpoint: `http://localhost:4466` }
);

export const prisma = new Prisma();
github fivethree-team / nestjs-prisma-starter / src / generated / prisma-client / index.ts View on Github external
},
  {
    name: "Post",
    embedded: false
  },
  {
    name: "Role",
    embedded: false
  }
];

/**
 * Type Defs
 */

export const Prisma = makePrismaClientClass>({
  typeDefs,
  models,
  endpoint: `${process.env["PRISMA_ENDPOINT"]}:${process.env["PRISMA_PORT"]}/${
    process.env["PRISMA_SERVICE_NAME"]
  }/${process.env["PRISMA_SERVICE_STAGE"]}`
});
export const prisma = new Prisma();
github arkhn / pyrog / server / src / generated / prisma-client / index.ts View on Github external
},
  {
    name: "Role",
    embedded: false
  },
  {
    name: "User",
    embedded: false
  }
];

/**
 * Type Defs
 */

export const Prisma = makePrismaClientClass>({
  typeDefs,
  models,
  endpoint: `${process.env["PRISMA_ENDPOINT"]}`
});
export const prisma = new Prisma();
github este / este / prisma / generated / prisma-client / index.ts View on Github external
export const models: Model[] = [
  {
    name: "User",
    embedded: false
  },
  {
    name: "Web",
    embedded: false
  }
];

/**
 * Type Defs
 */

export const Prisma = makePrismaClientClass>({
  typeDefs,
  models,
  endpoint: `${process.env["PRISMA_ENDPOINT"]}`,
  secret: `${process.env["PRISMA_SECRET"]}`
});
export const prisma = new Prisma();

prisma-client-lib

This package includes all dependencies besides `graphql` needed in order to run Prisma client in JavaScript, TypeScript and Flow.

Apache-2.0
Latest version published 4 years ago

Package Health Score

40 / 100
Full package analysis

Popular prisma-client-lib functions

Similar packages