Add contents to the room query

This commit is contained in:
Pawel Kowalski 2018-09-04 15:01:06 +02:00
parent b28346d297
commit 5bdb427a17
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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
} }
} }
} }