-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathschema.graphql
More file actions
65 lines (61 loc) · 2.54 KB
/
Copy pathschema.graphql
File metadata and controls
65 lines (61 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Linear API — vendor GraphQL (not Plasm-owned).
# Full schema: run introspection — apis/linear/scripts/refresh_schema.sh (requires LINEAR_API_TOKEN).
# Excerpt below is a minimal authoring reference when introspection is unavailable.
type Query {
viewer: User!
issues(first: Int, after: String, filter: IssueFilter): IssueConnection!
issue(id: String!): Issue
teams(first: Int, after: String, filter: TeamFilter): TeamConnection!
team(id: String!): Team
projects(first: Int, after: String): ProjectConnection!
project(id: String!): Project
users(first: Int, after: String): UserConnection!
user(id: String!): User
workflowStates(first: Int, after: String, filter: WorkflowStateFilter): WorkflowStateConnection!
cycle(id: String!): Cycle
issueLabels(first: Int, after: String): IssueLabelConnection!
comments(first: Int, after: String, filter: CommentFilter): CommentConnection!
comment(id: String!): Comment
documents(first: Int, after: String, filter: DocumentFilter): DocumentConnection!
document(id: String!): Document
initiatives(first: Int, after: String): InitiativeConnection!
initiative(id: String!): Initiative
projectMilestones(first: Int, after: String, filter: ProjectMilestoneFilter): ProjectMilestoneConnection!
projectMilestone(id: String!): ProjectMilestone
projectUpdates(first: Int, after: String, filter: ProjectUpdateFilter): ProjectUpdateConnection!
}
type Issue {
id: ID!
identifier: String!
title: String!
description: String
priority: Float
estimate: Float
dueDate: DateTime
team: Team
project: Project
assignee: User
state: WorkflowState
cycle: Cycle
labels: IssueLabelConnection
parent: Issue
children: IssueConnection!
}
type Team {
id: ID!
key: String
name: String
}
type Mutation {
issueCreate(input: IssueCreateInput!): IssuePayload!
issueUpdate(id: String!, input: IssueUpdateInput!): IssuePayload!
issueDelete(id: String!): IssueArchivePayload!
commentCreate(input: CommentCreateInput!): CommentPayload!
projectCreate(input: ProjectCreateInput!): ProjectPayload!
projectUpdate(id: String!, input: ProjectUpdateInput!): ProjectPayload!
documentUpdate(id: String!, input: DocumentUpdateInput!): DocumentPayload!
initiativeUpdate(id: String!, input: InitiativeUpdateInput!): InitiativePayload!
projectMilestoneCreate(input: ProjectMilestoneCreateInput!): ProjectMilestonePayload!
projectMilestoneUpdate(id: String!, input: ProjectMilestoneUpdateInput!): ProjectMilestonePayload!
projectUpdateCreate(input: ProjectUpdateCreateInput!): ProjectUpdatePayload!
}