Upgrade redwood to 0.25.0

changes from sql to postgress for dev, super stressful
This commit is contained in:
Kurt Hutten
2021-02-28 20:11:48 +11:00
parent 990af22c90
commit 682993fa48
30 changed files with 341 additions and 1967 deletions

View File

@@ -6,7 +6,7 @@ export const comments = () => {
}
export const comment = ({ id }) => {
return db.comment.findOne({
return db.comment.findUnique({
where: { id },
})
}
@@ -32,7 +32,7 @@ export const deleteComment = ({ id }) => {
export const Comment = {
user: (_obj, { root }) =>
db.comment.findOne({ where: { id: root.id } }).user(),
db.comment.findUnique({ where: { id: root.id } }).user(),
part: (_obj, { root }) =>
db.comment.findOne({ where: { id: root.id } }).part(),
db.comment.findUnique({ where: { id: root.id } }).part(),
}