nexus-prisma
Advanced tools
Comparing version 0.10.0 to 0.11.0-next.1
@@ -233,3 +233,3 @@ "use strict"; | ||
*/ | ||
export type LocalComputedInputs<MethodName extends MutationMethodName> = Record< | ||
export type LocalComputedInputs<MethodName extends any> = Record< | ||
string, | ||
@@ -254,9 +254,9 @@ (params: LocalMutationResolverParams<MethodName>) => unknown | ||
export type LocalMutationResolverParams< | ||
MethodName extends MutationMethodName | ||
MethodName extends any | ||
> = BaseMutationResolverParams & { | ||
args: core.GetGen<'argTypes'>['Mutation'][MethodName] | ||
args: MethodName extends keyof core.GetGen2<'argTypes', 'Mutation'> | ||
? core.GetGen3<'argTypes', 'Mutation', MethodName> | ||
: any | ||
} | ||
export type MutationMethodName = keyof core.GetGen<'argTypes'>['Mutation'] | ||
export type Context = core.GetGen<'context'> | ||
@@ -263,0 +263,0 @@ |
{ | ||
"name": "nexus-prisma", | ||
"version": "0.10.0", | ||
"version": "0.11.0-next.1", | ||
"main": "dist/index.js", | ||
@@ -17,9 +17,9 @@ "types": "dist/index.d.ts", | ||
"clean": "rm -rf dist", | ||
"build": "ts-node scripts/sync-prisma-version && yarn -s clean && tsc", | ||
"build": "ts-node scripts/ensure-prisma2-version && yarn -s clean && tsc", | ||
"build:doc": "doctoc README.md && prettier --write README.md", | ||
"dev": "tsc --watch", | ||
"dev:test": "ts-node scripts/sync-prisma-version && ts-node tests/__ensure-engine.ts && jest --watch", | ||
"dev:test": "ts-node scripts/ensure-prisma2-version && ts-node tests/__ensure-engine.ts && jest --watch", | ||
"prepublishOnly": "yarn -s build", | ||
"style": "prettier --write 'src/**/*.ts' 'test/**/*.ts' 'example/**/*.ts'", | ||
"test": "ts-node scripts/sync-prisma-version && ts-node tests/__ensure-engine.ts && jest" | ||
"test": "ts-node scripts/ensure-prisma2-version && ts-node tests/__ensure-engine.ts && jest" | ||
}, | ||
@@ -32,3 +32,3 @@ "dependencies": { | ||
"peerDependencies": { | ||
"@prisma/client": "^2.0.0-preview022", | ||
"@prisma/client": "2.0.0-preview022", | ||
"graphql": "^14.5.0", | ||
@@ -41,2 +41,3 @@ "nexus": "^0.12.0-rc.13" | ||
"@prisma/fetch-engine": "^0.3.57", | ||
"@prisma/get-platform": "^0.1.29", | ||
"@prisma/lift": "^0.3.384", | ||
@@ -63,3 +64,3 @@ "@prisma/sdk": "^0.0.216", | ||
"prettier": "^1.17.1", | ||
"prisma2": "^2.0.0-preview022", | ||
"prisma2": "2.0.0-preview022", | ||
"react": "^16.12.0", | ||
@@ -78,6 +79,3 @@ "rimraf": "^3.0.1", | ||
"trailingComma": "all" | ||
}, | ||
"prisma": { | ||
"version": "f608db3b9e4f50f9a384356e532357b0a525969a" | ||
} | ||
} |
@@ -94,3 +94,3 @@ <p align="center"> | ||
model User { | ||
id String @id @unique @default(cuid()) | ||
id String @id @default(cuid()) | ||
email String @unique | ||
@@ -101,3 +101,3 @@ birthDate DateTime | ||
model Post { | ||
id String @id @unique @default(cuid()) | ||
id String @id @default(cuid()) | ||
author User[] | ||
@@ -1079,3 +1079,3 @@ } | ||
input RM_WhereUniqueInput { | ||
RMF@unique: S | ||
MRF@unique: S | ||
} | ||
@@ -2092,6 +2092,6 @@ | ||
# The starting object for the list (typically ID or other unique value). | ||
after: String | ||
after: M_WhereUniquInout | ||
# The last object for the list (typically ID or other unique value) | ||
before: String | ||
before: M_WhereUniquInout | ||
@@ -2112,4 +2112,8 @@ # How many elements, forwards from `after` otherwise head | ||
type M { | ||
RF(after: String, before: String, first: Int, last: Int, skip: Int) | ||
MRF(after: M_WhereUniquInout, before: M_WhereUniquInout, first: Int, last: Int, skip: Int) | ||
} | ||
input M_WhereUniquInout { | ||
MSF@unique: S | ||
} | ||
``` | ||
@@ -2120,3 +2124,12 @@ | ||
```gql | ||
query batchRead { | ||
query batchReadAfter { | ||
users(after: { id: 1234 }, first: 50) { | ||
id | ||
name | ||
} | ||
} | ||
# or | ||
query batchReadSkip { | ||
users(skip: 50, first: 50) { | ||
@@ -2128,2 +2141,4 @@ id | ||
# or | ||
query batchReadRelation { | ||
@@ -2130,0 +2145,0 @@ user(where: { id: 1643 }) { |
@@ -300,3 +300,3 @@ import { DmmfTypes, DmmfDocument } from './dmmf' | ||
*/ | ||
export type LocalComputedInputs<MethodName extends MutationMethodName> = Record< | ||
export type LocalComputedInputs<MethodName extends any> = Record< | ||
string, | ||
@@ -321,9 +321,9 @@ (params: LocalMutationResolverParams<MethodName>) => unknown | ||
export type LocalMutationResolverParams< | ||
MethodName extends MutationMethodName | ||
MethodName extends any | ||
> = BaseMutationResolverParams & { | ||
args: core.GetGen<'argTypes'>['Mutation'][MethodName] | ||
args: MethodName extends keyof core.GetGen2<'argTypes', 'Mutation'> | ||
? core.GetGen3<'argTypes', 'Mutation', MethodName> | ||
: any | ||
} | ||
export type MutationMethodName = keyof core.GetGen<'argTypes'>['Mutation'] | ||
export type Context = core.GetGen<'context'> | ||
@@ -330,0 +330,0 @@ |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
285995
4496
0
3067
34