Touched up embed + stream query

This commit is contained in:
Wyatt Johnson
2017-03-01 15:49:39 -07:00
parent eeb82ff7bb
commit 3d13380fcc
3 changed files with 44 additions and 24 deletions
@@ -1,7 +1,7 @@
#import "../fragments/commentView.graphql"
query AssetQuery($asset_url: String!, $comment_id: ID!) {
comment(id: $comment_id) {
query AssetQuery($asset_id: ID, $asset_url: String!, $comment_id: ID!, $has_comment: Boolean!) {
comment(id: $comment_id) @include(if: $has_comment) {
...commentView
parent {
...commentView
@@ -10,7 +10,7 @@ query AssetQuery($asset_url: String!, $comment_id: ID!) {
}
}
}
asset(url: $asset_url) {
asset(id: $asset_id, url: $asset_url) {
id
title
url