Function generate

  • Reads inputs from a Prisma generator and then generates and writes all the needed GraphQL and JS code required for a full Node.js GraphQL server to function.

    Parameters

    • dmmf: ReadonlyDeep<{}>
    • options: Readonly<
          { compileOutput: boolean; outputDirPath: string } & {
              generateMutation: boolean;
              generateQuery: boolean;
          },
      >

    Returns Promise<void>