Skip to content
datashaman edited this page Feb 24, 2019 · 4 revisions

Schema

Table of Contents

Query

Field Argument Type Description
builds BuildPaginator
count Int!
page Int
build Build
id ID!
me User
myTeams [Team!]!
project Project
id ID!
projects ProjectPaginator
count Int!
page Int
projectBuilds [Build!]
project_id ID!
team Team
id ID!
teams TeamPaginator
count Int!
page Int
teamProjects [Project!]
team_id ID!
teamUsers [User!]
team_id ID!
user User
id ID!
users UserPaginator
count Int!
page Int
userTeams [Team!]
user_id ID!
node Node
id ID!

Mutation

Field Argument Type Description
createTeam Team
team TeamInput!
updateTeam Team
id ID!
team TeamInput!
deleteTeam Team
id ID!
createUser User
user UserInput!
updateUser User
id ID!
user UserInput!
deleteUser User
id ID!
addUserRole User
id ID!
role String!
team_id Int
removeUserRole User
id ID!
role String!
team_id Int
createProject Project
project CreateProjectInput!
updateProject Project
id ID!
project UpdateProjectInput!
deleteProject Project
id ID!
buildProject Build
id ID!
commit String!

Objects

Build

Field Argument Type Description
id ID!
project Project!
user User!
status String!
commit String!
output String!
completed_at DateTime
created_at DateTime!

BuildPaginator

Field Argument Type Description
paginatorInfo PaginatorInfo!
data [Build!]!

PageInfo

Field Argument Type Description
hasNextPage Boolean!

When paginating forwards, are there more items?

hasPreviousPage Boolean!

When paginating backwards, are there more items?

startCursor String

When paginating backwards, the cursor to continue.

endCursor String

When paginating forwards, the cursor to continue.

total Int

Total number of node in connection.

count Int

Count of nodes in current request.

currentPage Int

Current page of request.

lastPage Int

Last page in connection.

PaginatorInfo

Field Argument Type Description
count Int!

Total count of available items in the page.

currentPage Int!

Current pagination page.

firstItem Int

Index of first item in the current page.

hasMorePages Boolean!

If collection has more pages.

lastItem Int

Index of last item in the current page.

lastPage Int!

Last page number of the collection.

perPage Int!

Number of items per page in the collection.

total Int!

Total items available in the collection.

Project

Field Argument Type Description
id ID!
team Team!
name String!
repository String!
created_at DateTime!
updated_at DateTime
latestBuild Build

ProjectPaginator

Field Argument Type Description
paginatorInfo PaginatorInfo!
data [Project!]!

Team

Field Argument Type Description
id ID!
name String!
created_at DateTime!
updated_at DateTime
users [User!]
projects [Project!]

TeamPaginator

Field Argument Type Description
paginatorInfo PaginatorInfo!
data [Team!]!

User

Field Argument Type Description
id ID!
name String!
email String!
created_at DateTime!
updated_at DateTime
userRoles [UserRole!]

UserPaginator

Field Argument Type Description
paginatorInfo PaginatorInfo!
data [User!]!

UserRole

Field Argument Type Description
id ID!
user User!
role String!
team Team
created_at DateTime!
updated_at DateTime

Inputs

CreateProjectInput

Field Type Description
team_id ID!
name String!
repository String!
private_key String!

TeamInput

Field Type Description
name String!

UpdateProjectInput

Field Type Description
name String!
repository String!
private_key String!

UserInput

Field Type Description
name String!
email String!
password String!

Scalars

Boolean

The Boolean scalar type represents true or false.

Date

DateTime

Float

The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.

ID

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

Int

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

String

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Interfaces

Node

Node global interface

Field Argument Type Description
id ID!

Global identifier that can be used to resolve any Node implementation.