Fetch missing disabled/deleted attributes

Do you think it's better to **always request** the `disabled` and `deleted`
properties on the client or is it OK to **always return** these
properties even if the client did not ask for it?
@appinteractive @ulfgebhardt
This commit is contained in:
Robert Schäfer 2019-03-15 20:49:46 +01:00
parent 67686d0af9
commit 580f142b2e
5 changed files with 38 additions and 1 deletions

View File

@ -9,12 +9,16 @@ export default app => {
type type
createdAt createdAt
submitter { submitter {
disabled
deleted
name name
slug slug
} }
user { user {
name name
slug slug
disabled
deleted
disabledBy { disabledBy {
slug slug
name name
@ -25,12 +29,18 @@ export default app => {
author { author {
name name
slug slug
disabled
deleted
} }
post { post {
disabled
deleted
title title
slug slug
} }
disabledBy { disabledBy {
disabled
deleted
slug slug
name name
} }
@ -38,11 +48,17 @@ export default app => {
post { post {
title title
slug slug
disabled
deleted
author { author {
disabled
deleted
name name
slug slug
} }
disabledBy { disabledBy {
disabled
deleted
slug slug
name name
} }

View File

@ -9,12 +9,13 @@ export default app => {
name name
avatar avatar
about about
disabled
deleted
locationName locationName
location { location {
name: name${lang} name: name${lang}
} }
createdAt createdAt
disabled
badges { badges {
id id
key key
@ -29,6 +30,8 @@ export default app => {
name name
slug slug
avatar avatar
disabled
deleted
followedByCount followedByCount
followedByCurrentUser followedByCurrentUser
contributionsCount contributionsCount
@ -47,6 +50,8 @@ export default app => {
followedBy(first: 7) { followedBy(first: 7) {
id id
name name
disabled
deleted
slug slug
avatar avatar
followedByCount followedByCount
@ -73,6 +78,8 @@ export default app => {
deleted deleted
image image
createdAt createdAt
disabled
deleted
categories { categories {
id id
name name
@ -82,6 +89,8 @@ export default app => {
id id
avatar avatar
name name
disabled
deleted
location { location {
name: name${lang} name: name${lang}
} }

View File

@ -98,6 +98,7 @@ export default {
contentExcerpt contentExcerpt
createdAt createdAt
disabled disabled
deleted
slug slug
image image
author { author {
@ -105,6 +106,8 @@ export default {
avatar avatar
slug slug
name name
disabled
deleted
contributionsCount contributionsCount
shoutedCount shoutedCount
commentsCount commentsCount

View File

@ -148,6 +148,7 @@ export default {
content content
createdAt createdAt
disabled disabled
deleted
slug slug
image image
author { author {
@ -155,6 +156,8 @@ export default {
slug slug
name name
avatar avatar
disabled
deleted
shoutedCount shoutedCount
contributionsCount contributionsCount
commentsCount commentsCount
@ -184,6 +187,8 @@ export default {
slug slug
name name
avatar avatar
disabled
deleted
shoutedCount shoutedCount
contributionsCount contributionsCount
commentsCount commentsCount

View File

@ -48,10 +48,14 @@ export default {
title title
content content
createdAt createdAt
disabled
deleted
slug slug
image image
author { author {
id id
disabled
deleted
} }
tags { tags {
name name