How to use the gqliteral.buildSchema function in gqliteral

To help you get started, we’ve selected a few gqliteral 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-labs / nexus-prisma / src / gqliteral / schema.ts View on Github external
prisma: path.join(__dirname, '../generated/prisma-client/index.ts'),
      ctx: path.join(__dirname, '../context.ts'),
    },

    contextType: 'ctx.Context',

    rootTypes: {
      User: 'prisma.User',
      //Post: 'prisma.Post',
    },
  },

  // plugins: [prismaPlugin],
})

export const schema = buildSchema({
  types: allTypes,

  outputs: {
    schema: path.join(__dirname, '../../schema.graphql'),
    typegen: path.join(__dirname, '../generated/gqliteral.ts'),
  },

  typegen: {
    imports: {
      prisma: path.join(__dirname, '../generated/prisma-client/index.ts'),
      ctx: path.join(__dirname, '../context.ts'),
    },

    contextType: 'ctx.Context',

    rootTypes: {
github prisma-labs / nexus-prisma / src / gqliteral / schema.ts View on Github external
function buildPrismaSchema(
  options: PrismaSchemaConfig,
) {
  buildSchema(options)
}

gqliteral

Scalable, strongly typed GraphQL schema development

MIT
Latest version published 5 years ago

Package Health Score

56 / 100
Full package analysis

Similar packages