{"version":3,"sources":["jsdelivr-header.js","/npm/redo-nexus-prisma@0.11.1-22/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,MAAM,SAAW,QAAQ,iBACnB,UAAY,QAAQ,aAmC1B,SAAS,kBAAkB,GACvB,OAAO,SAAS,OAAO,CACnB,KAAM,eACN,UAAW,IACA,CACH,MAAO,UAAU,MAAM,OAAO,OAAO,OAAO,OAAO,CAAC,EAAG,GAAU,CAAE,qBAInF,CACA,QAAQ,kBAAoB","file":"/npm/redo-nexus-prisma@0.11.1-22/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/redo-nexus-prisma@0.11.1-22/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst schema_1 = require(\"@nexus/schema\");\nconst builder_1 = require(\"./builder\");\n/**\n * Create a nexus-prisma plugin to be passed into the Nexus plugins array.\n *\n * The nexus plugin extends the Nexus DSL with `t.model` and `t.crud`. These\n * allow you to expose data from your Prisma layer and operations against that\n * data. Once this plugin is installed, you can do things such as:\n *\n * ```ts\n * objectType({\n *   name: 'User',\n *   definition(t) {\n *     t.model.id()\n *     t.model.email()\n *   }\n * })\n *\n * queryType({\n *   definition (t) {\n *      t.crud.user()\n *      t.crud.users({ filtering: true, ordering: true })\n *    }\n * })\n * ```\n *\n * You must ensure the Prisma Client JS has been generated prior as it provides a\n * data representation of the available models and CRUD operations against them.\n *\n * Like Nexus, NexusPrisma has its own Typegen. By default It will be generated\n * synchronously when Nexus runs the plugin, _if_ `process.env.NODE_ENV` is\n * `undefined` or `\"development\"`. Typegen can be explicitly enabled or disabled\n * via the shouldGenerateArtifacts option. This mirrors Nexus' own typegen\n * approach. This system will change once the Nexus plugin system has first\n * class support for typegen.\n */\nfunction nexusPrismaPlugin(options) {\n    return schema_1.plugin({\n        name: 'nexus-prisma',\n        onInstall: nexusBuilder => {\n            return {\n                types: builder_1.build(Object.assign(Object.assign({}, options), { nexusBuilder })),\n            };\n        },\n    });\n}\nexports.nexusPrismaPlugin = nexusPrismaPlugin;\n"]}