【发布时间】:2019-09-30 01:59:21
【问题描述】:
程序会弹出这个 -> (@scalarList 的策略参数的有效值为:RELATION。)在运行 prisma deploy 之后。有谁知道为什么?
type User {
id: ID! @id
name: String!
email: String! @unique
password: String!
age: Int
img: String
location: Location
hostedEvents: [Event]! @relation(name: "HostedEvents", onDelete: CASCADE)
joinedEvents: [Event]! @relation(name: "EventMembers", onDelete: CASCADE)
pushNotificationTokens: [PushNotificationTokens]!
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
}
type Event {
id: ID! @id
owner: User! @relation(name: "HostedEvents")
name: String!
imgs: [String]!
description: String
start: DateTime!
end: DateTime!
categories: [Category]!
members: [User]! @relation(name: "EventMembers")
chatRoom: GroupChatRoom!
pendingRequests: [PendingRequest]!
locations: [Location]!
comments: [Comment]!
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
}
【问题讨论】:
标签: graphql prisma prisma-graphql