mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
81 lines
1.3 KiB
JavaScript
81 lines
1.3 KiB
JavaScript
import gql from 'graphql-tag'
|
|
|
|
export default app => {
|
|
return gql(`
|
|
query {
|
|
Report(first: 20, orderBy: createdAt_desc) {
|
|
id
|
|
description
|
|
type
|
|
createdAt
|
|
submitter {
|
|
id
|
|
slug
|
|
name
|
|
disabled
|
|
deleted
|
|
}
|
|
user {
|
|
id
|
|
slug
|
|
name
|
|
disabled
|
|
deleted
|
|
disabledBy {
|
|
id
|
|
slug
|
|
name
|
|
disabled
|
|
deleted
|
|
}
|
|
}
|
|
comment {
|
|
contentExcerpt
|
|
author {
|
|
id
|
|
slug
|
|
name
|
|
disabled
|
|
deleted
|
|
}
|
|
post {
|
|
id
|
|
slug
|
|
title
|
|
disabled
|
|
deleted
|
|
}
|
|
disabledBy {
|
|
id
|
|
slug
|
|
name
|
|
disabled
|
|
deleted
|
|
}
|
|
}
|
|
post {
|
|
id
|
|
slug
|
|
title
|
|
disabled
|
|
deleted
|
|
author {
|
|
id
|
|
slug
|
|
name
|
|
disabled
|
|
deleted
|
|
}
|
|
disabledBy {
|
|
id
|
|
slug
|
|
name
|
|
disabled
|
|
deleted
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
}
|