Skip to content

Commit 8c14ed5

Browse files
author
Carlos Rufo
committed
fix prisma autogen & config
1 parent f741f75 commit 8c14ed5

File tree

2 files changed

+35
-12
lines changed

2 files changed

+35
-12
lines changed

server/prisma/prisma.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Specifies the HTTP endpoint of your Prisma API.
2-
endpoint: ''
2+
#endpoint: ''
3+
endpoint: https://eu1.prisma.sh/carlos-rufo-20c5e9/server/dev
34

45
# Defines your models, each model is mapped to the database as a table.
56
datamodel: datamodel.prisma

server/src/generated/prisma-client/index.d.ts

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
// Code generated by Prisma (prisma@1.22.2). DO NOT EDIT.
1+
// Code generated by Prisma (prisma@1.23.0). DO NOT EDIT.
22
// Please don't change this file manually but run `prisma generate` to update it.
33
// For more information, please read the docs: https://www.prisma.io/docs/prisma-client/
44

5-
import { DocumentNode, GraphQLSchema } from "graphql";
6-
import { makePrismaClientClass, BaseClientOptions } from "prisma-client-lib";
5+
import { DocumentNode } from "graphql";
6+
import {
7+
makePrismaClientClass,
8+
BaseClientOptions,
9+
Model
10+
} from "prisma-client-lib";
711
import { typeDefs } from "./prisma-schema";
812

9-
type AtLeastOne<T, U = { [K in keyof T]: Pick<T, K> }> = Partial<T> &
13+
export type AtLeastOne<T, U = { [K in keyof T]: Pick<T, K> }> = Partial<T> &
1014
U[keyof U];
1115

1216
export interface Exists {
@@ -785,7 +789,10 @@ export interface VotePreviousValuesSubscription
785789
id: () => Promise<AsyncIterator<ID_Output>>;
786790
}
787791

788-
export interface UserConnection {}
792+
export interface UserConnection {
793+
pageInfo: PageInfo;
794+
edges: UserEdge[];
795+
}
789796

790797
export interface UserConnectionPromise
791798
extends Promise<UserConnection>,
@@ -803,7 +810,10 @@ export interface UserConnectionSubscription
803810
aggregate: <T = AggregateUserSubscription>() => T;
804811
}
805812

806-
export interface LinkConnection {}
813+
export interface LinkConnection {
814+
pageInfo: PageInfo;
815+
edges: LinkEdge[];
816+
}
807817

808818
export interface LinkConnectionPromise
809819
extends Promise<LinkConnection>,
@@ -946,6 +956,7 @@ export interface AggregateVoteSubscription
946956
}
947957

948958
export interface LinkEdge {
959+
node: Link;
949960
cursor: String;
950961
}
951962

@@ -961,7 +972,10 @@ export interface LinkEdgeSubscription
961972
cursor: () => Promise<AsyncIterator<String>>;
962973
}
963974

964-
export interface VoteConnection {}
975+
export interface VoteConnection {
976+
pageInfo: PageInfo;
977+
edges: VoteEdge[];
978+
}
965979

966980
export interface VoteConnectionPromise
967981
extends Promise<VoteConnection>,
@@ -981,7 +995,9 @@ export interface VoteConnectionSubscription
981995

982996
export interface UserSubscriptionPayload {
983997
mutation: MutationType;
984-
updatedFields?: String[];
998+
node: User;
999+
updatedFields: String[];
1000+
previousValues: UserPreviousValues;
9851001
}
9861002

9871003
export interface UserSubscriptionPayloadPromise
@@ -1003,6 +1019,7 @@ export interface UserSubscriptionPayloadSubscription
10031019
}
10041020

10051021
export interface UserEdge {
1022+
node: User;
10061023
cursor: String;
10071024
}
10081025

@@ -1063,7 +1080,9 @@ export interface LinkPreviousValuesSubscription
10631080

10641081
export interface LinkSubscriptionPayload {
10651082
mutation: MutationType;
1066-
updatedFields?: String[];
1083+
node: Link;
1084+
updatedFields: String[];
1085+
previousValues: LinkPreviousValues;
10671086
}
10681087

10691088
export interface LinkSubscriptionPayloadPromise
@@ -1156,7 +1175,9 @@ export interface PageInfoSubscription
11561175

11571176
export interface VoteSubscriptionPayload {
11581177
mutation: MutationType;
1159-
updatedFields?: String[];
1178+
node: Vote;
1179+
updatedFields: String[];
1180+
previousValues: VotePreviousValues;
11601181
}
11611182

11621183
export interface VoteSubscriptionPayloadPromise
@@ -1210,6 +1231,7 @@ export interface AggregateUserSubscription
12101231
}
12111232

12121233
export interface VoteEdge {
1234+
node: Vote;
12131235
cursor: String;
12141236
}
12151237

@@ -1262,7 +1284,7 @@ export type Boolean = boolean;
12621284
* Model Metadata
12631285
*/
12641286

1265-
export const models = [
1287+
export const models: Model[] = [
12661288
{
12671289
name: "Link",
12681290
embedded: false

0 commit comments

Comments
 (0)