Commit 532181c1 authored by Natalia Tepluhina's avatar Natalia Tepluhina Committed by Martin Wortschack

Resolve "Abstract common fragments to GraphQL shared folder"

parent 898c5da4
...@@ -3,4 +3,4 @@ fragment Author on User { ...@@ -3,4 +3,4 @@ fragment Author on User {
name name
username username
webUrl webUrl
} }
\ No newline at end of file
fragment Author on Snippet {
author {
name,
avatarUrl,
username,
webUrl
}
}
\ No newline at end of file
#import '../fragments/snippetBase.fragment.graphql' #import '../fragments/snippetBase.fragment.graphql'
#import '../fragments/project.fragment.graphql' #import '../fragments/project.fragment.graphql'
#import '../fragments/author.fragment.graphql' #import "~/graphql_shared/fragments/author.fragment.graphql"
query GetSnippetQuery($ids: [ID!]) { query GetSnippetQuery($ids: [ID!]) {
snippets(ids: $ids) { snippets(ids: $ids) {
...@@ -8,7 +8,9 @@ query GetSnippetQuery($ids: [ID!]) { ...@@ -8,7 +8,9 @@ query GetSnippetQuery($ids: [ID!]) {
node { node {
...SnippetBase ...SnippetBase
...Project ...Project
...Author author {
...Author
}
} }
} }
} }
......
#import "./diffRefs.fragment.graphql" #import "./diffRefs.fragment.graphql"
#import "./author.fragment.graphql" #import "~/graphql_shared/fragments/author.fragment.graphql"
fragment DesignNote on Note { fragment DesignNote on Note {
id id
......
#import "../fragments/design.fragment.graphql" #import "../fragments/design.fragment.graphql"
#import "../fragments/author.fragment.graphql" #import "~/graphql_shared/fragments/author.fragment.graphql"
query getDesign($fullPath: ID!, $iid: String!, $atVersion: ID, $filenames: [String!]) { query getDesign($fullPath: ID!, $iid: String!, $atVersion: ID, $filenames: [String!]) {
project(fullPath: $fullPath) { project(fullPath: $fullPath) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment