Files
Alan Rynne 9fc6bb1923 Polish
2021-07-09 18:07:13 +02:00

39 lines
652 B
JavaScript

export const userInfoQuery = () => `query {
user {
name
},
serverInfo {
name
company
}
}`
export const streamCommitsQuery = (streamId, itemsPerPage, cursor) => `query {
stream(id: "${streamId}"){
branches {
totalCount
cursor
items {
name
commits(limit: 1){
items {
referencedObject
}
}
}
}
}
}`
export const streamSearchQuery = search => `query {
streams(query: "${search}") {
totalCount
cursor
items {
id
name
updatedAt
}
}
}`