Fixed queries.

This commit is contained in:
2019-12-15 23:46:42 +01:00
parent ce92d13327
commit 577c03f9b7
4 changed files with 1479 additions and 245 deletions

View File

@@ -6,7 +6,7 @@ function curateRelease(release) {
actors: release.actors.map(({ actor }) => ({
...actor,
avatar: actor.avatar[0],
origin: {
origin: actor.originCountry && {
country: actor.originCountry,
},
})),
@@ -31,7 +31,7 @@ function initReleasesActions(_store, _router) {
*/
const { releases } = await graphql(`
query Releases($limit:Int) {
query Releases($limit:Int!) {
releases(first:$limit, orderBy: DATE_DESC) {
id
title
@@ -63,7 +63,7 @@ function initReleasesActions(_store, _router) {
thumbnail
}
tags: releasesTagsByTargetId {
tag {
tag: releaseTag {
name
priority
slug
@@ -137,7 +137,7 @@ function initReleasesActions(_store, _router) {
thumbnail
}
tags: releasesTagsByTargetId {
tag {
tag: releaseTag {
name
priority
slug