Start connecting entries frontend to backend

This commit is contained in:
Pawel Kowalski 2018-08-23 16:20:25 +02:00
parent f583c6c8cc
commit 8fc0b07eb1
3 changed files with 116 additions and 67 deletions

View File

@ -0,0 +1,24 @@
query RoomEntriesQuery($slug: String!) {
room(slug:$slug) {
id
title
slug
appearance
pk
roomEntries {
edges {
node {
id
slug
title
description
author {
id
firstName
lastName
}
}
}
}
}
}

View File

@ -1,5 +1,5 @@
query RoomEntriesQuery($id: ID!) {
room(id:$id) {
query RoomEntriesQuery($slug: String!) {
room(slug:$slug) {
id
title
slug

File diff suppressed because one or more lines are too long