Cihad Turhan
02/04/2019, 8:31 AMgraphql
type ReadHistory {
id: ID! @unique
user: User!
article: Article!
}
I need unique user id and article id pairs on that. What I currently have is
context.prisma.readHistories({
where: {
user: { id: args.userId },
article: { authors_some: { isPOC: true } }
},
orderBy: 'createdAt_DESC'
})