This commit is contained in:
Wolfgang Huß 2020-04-01 16:14:24 +02:00
parent d0cf1cc185
commit 1036540a00
2 changed files with 1 additions and 23 deletions

View File

@ -230,29 +230,6 @@ describe('given some notifications', () => {
... on Comment {
content
}
# Wolle ... on Report {
# id
# filed {
# reasonCategory
# reasonDescription
# reportedResource {
# __typename
# ... on User {
# id
# name
# }
# ... on Post {
# id
# title
# content
# }
# ... on Comment {
# id
# content
# }
# }
# }
# }
... on FiledReport {
reportId
reasonCategory

View File

@ -84,6 +84,7 @@ export default {
const reportsReadTxPromise = session.readTransaction(async (transaction) => {
const reportsTransactionResponse = await transaction.run(
// Wolle
// !!! this Cypher query returns multiple reports on the same resource! i will create an issue for refactoring (bug fixing)
`
MATCH (report:Report)-[:BELONGS_TO]->(resource)