1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-29 05:10:05 +02:00

Add gql file imports for fragments

This commit is contained in:
JUDIT GRESKOVITS 2017-05-11 13:10:52 +01:00 committed by Judit Greskovits
parent 63d16e6f98
commit 14079028a6
4 changed files with 10 additions and 7 deletions

View File

@ -3,6 +3,8 @@ import { graphql } from 'react-apollo';
import { Link } from 'react-router-dom';
import ServicesQuery from '../../graphql/Services.gql';
console.log('ServicesQuery = ', ServicesQuery);
class ServiceList extends Component {
render() {

View File

@ -0,0 +1,5 @@
fragment DeploymentGroupInfo on DeploymentGroup {
uuid
name
id
}

View File

@ -1,4 +0,0 @@
fragment MetricsData {
timestamp
value
}

View File

@ -1,8 +1,8 @@
#import "./DeploymentGroupInfo.gql"
query Services($deploymentGroupId: String!){
deploymentGroup(id: $deploymentGroupId) {
uuid
name
id
...DeploymentGroupInfo
services {
uuid
name