Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
pipeline: () => Relay.QL`
fragment on Pipeline {
id
slug
organization {
slug
}
scheduledBuilds: builds(state: SCHEDULED) {
count
}
runningBuilds: builds(state: RUNNING) {
count
}
}
`
}
public static queries: any = { root: () => Relay.QL`query { root }` }
public static routeName: any = 'PlayAppRoute'
artwork: () => Relay.QL`
fragment on Artwork {
title
artists {
name
}
image {
url
}
}
`,
},
getSubscription() {
return Relay.QL`
subscription {
addPostSubscription(input: $input) {
... on Post {
id
}
}
}
`;
}
node: () => Relay.QL`
query {
node(id: $id),
}`,
};
viewer: () => Relay.QL`
fragment on User {
${MediumPosts.getFragment('viewer')}
${PlayList.getFragment('viewer')}
}
`,
},
imageAttachment: () => Relay.QL`
fragment on AttachmentType {
id
download_url
}
`,
},