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:
parent
63d16e6f98
commit
14079028a6
@ -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() {
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
fragment DeploymentGroupInfo on DeploymentGroup {
|
||||||
|
uuid
|
||||||
|
name
|
||||||
|
id
|
||||||
|
}
|
@ -1,4 +0,0 @@
|
|||||||
fragment MetricsData {
|
|
||||||
timestamp
|
|
||||||
value
|
|
||||||
}
|
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user