1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 14:10:04 +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 { Link } from 'react-router-dom';
import ServicesQuery from '../../graphql/Services.gql'; import ServicesQuery from '../../graphql/Services.gql';
console.log('ServicesQuery = ', ServicesQuery);
class ServiceList extends Component { class ServiceList extends Component {
render() { 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!){ query Services($deploymentGroupId: String!){
deploymentGroup(id: $deploymentGroupId) { deploymentGroup(id: $deploymentGroupId) {
uuid ...DeploymentGroupInfo
name
id
services { services {
uuid uuid
name name