Skip to content

Releases: paljs/prisma-tools

v2.6.1

16 Nov 22:43
Compare
Choose a tag to compare

Generator

graphql-modules

fix some issues in the new generator for version 1

v2.6.0

16 Nov 22:42
Compare
Choose a tag to compare

Generator

graphql-modules

Support new version from graphql-modules v1

v2.5.12

10 Nov 11:13
Compare
Choose a tag to compare

plugins

resolve #152

adding a new option to onDelete method to custom what fields you want to return

prismaDelete.onDelete({
   model: 'User',
   where: { id: 1 },
   deleteParent: true, // if true will also delete user record default false
// new option
   returnFields: {id: true, name: true} // you can select what you need to return from parent record
 });

v2.5.7

03 Nov 21:57
Compare
Choose a tag to compare

Fix small issues

#150
#149
#148

v2.5.2

20 Oct 22:12
Compare
Choose a tag to compare

@paljs/nexus

change options types to add a custom dmmf

image

v2.5.1

20 Oct 10:23
Compare
Choose a tag to compare

PrismaSelect

Fix issue in forget add @paljs/display package to dependencies

PrismaDelete

Add new arg to constructor to accept options

You can now send the custom client

import {PrismaClient, dmmf} from './generate/client';
const prisma = new  PrismaClient();
const prismaDelete = new PrismaDelete(prisma, { dmmf });

v2.5.0

20 Oct 09:32
Compare
Choose a tag to compare

PrismaSelect

breaking changes

In this release, we changed the second arg in the PrismaSelect class and removed the third arg.

was

const select = new PrismaSelect(info, defaultFields, mergeObject)

now

const select = new PrismaSelect(info, { defaultFields })

New feature

Now you can send a new option to custom your Prisma client generation

import { dmmf } from './generate/client';

const select = new PrismaSelect(info, { dmmf })

v2.4.0

18 Oct 18:32
Compare
Choose a tag to compare

Generator

Add new generator nexus-plugin-prisma and archived create-nexus-type repo and package.

Docs here

Schema

Add a new schema converter to TypeScript definitions

Docs here

v2.3.2

15 Oct 16:03
Compare
Choose a tag to compare

Generator

SDL First

Adding custom type for custom resolvers names

v2.3.0

15 Oct 14:57
Compare
Choose a tag to compare

Generator

findFirst

Adding new findFirst query that Prisma added in their 2.8.0 version

SDL First

Now we generate all resolvers types to support full resolver typing

image