Add contents to the room query
This commit is contained in:
parent
b28346d297
commit
5bdb427a17
|
|
@ -1,5 +1,5 @@
|
||||||
query RoomEntriesQuery($slug: String!) {
|
query RoomEntriesQuery($slug: String!) {
|
||||||
room(slug:$slug) {
|
room(slug: $slug) {
|
||||||
id
|
id
|
||||||
title
|
title
|
||||||
slug
|
slug
|
||||||
|
|
@ -17,6 +17,7 @@ query RoomEntriesQuery($slug: String!) {
|
||||||
slug
|
slug
|
||||||
title
|
title
|
||||||
description
|
description
|
||||||
|
contents
|
||||||
author {
|
author {
|
||||||
id
|
id
|
||||||
firstName
|
firstName
|
||||||
|
|
|
||||||
|
|
@ -141,6 +141,7 @@
|
||||||
if (!loading) {
|
if (!loading) {
|
||||||
this.room = this.$getRidOfEdges(data).room
|
this.room = this.$getRidOfEdges(data).room
|
||||||
this.roomAppearance = this.room.appearance
|
this.roomAppearance = this.room.appearance
|
||||||
|
this.roomEntries = this.room.roomEntries
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue