| 1 |
mutation createPaste($files: [Upload!]!, $visibility: Visibility!) { |
| 2 |
create(files: $files, visibility: $visibility) { |
| 3 |
id |
| 4 |
user { |
| 5 |
canonicalName |
| 6 |
} |
| 7 |
} |
| 8 |
} |
| 9 |
|
| 10 |
mutation delete($id: String!) { |
| 11 |
delete(id: $id) { |
| 12 |
id |
| 13 |
} |
| 14 |
} |
| 15 |
|
| 16 |
mutation update($id: String!, $visibility: Visibility!) { |
| 17 |
update(id: $id, visibility: $visibility) { |
| 18 |
id |
| 19 |
} |
| 20 |
} |
| 21 |
|
| 22 |
mutation createUserWebhook($config: UserWebhookInput!) { |
| 23 |
createUserWebhook(config: $config) { |
| 24 |
id |
| 25 |
} |
| 26 |
} |
| 27 |
|
| 28 |
mutation deleteUserWebhook($id: Int!) { |
| 29 |
deleteUserWebhook(id: $id) { |
| 30 |
id |
| 31 |
} |
| 32 |
} |
| 33 |
|
| 34 |
query pastes($cursor: Cursor) { |
| 35 |
pastes(cursor: $cursor) { |
| 36 |
results { |
| 37 |
id |
| 38 |
created |
| 39 |
visibility |
| 40 |
files { |
| 41 |
filename |
| 42 |
} |
| 43 |
} |
| 44 |
cursor |
| 45 |
} |
| 46 |
} |
| 47 |
|
| 48 |
query pasteContents($cursor: Cursor) { |
| 49 |
pastes(cursor: $cursor) { |
| 50 |
results { |
| 51 |
...pasteContents |
| 52 |
} |
| 53 |
cursor |
| 54 |
} |
| 55 |
} |
| 56 |
|
| 57 |
query pasteContentsByID($id: String!) { |
| 58 |
paste(id: $id) { |
| 59 |
...pasteContents |
| 60 |
} |
| 61 |
} |
| 62 |
|
| 63 |
fragment pasteContents on Paste { |
| 64 |
id |
| 65 |
created |
| 66 |
visibility |
| 67 |
files { |
| 68 |
filename |
| 69 |
contents |
| 70 |
} |
| 71 |
} |
| 72 |
|
| 73 |
query pasteCompletionList { |
| 74 |
pastes { |
| 75 |
results { |
| 76 |
id |
| 77 |
files { |
| 78 |
filename |
| 79 |
} |
| 80 |
} |
| 81 |
} |
| 82 |
} |
| 83 |
|
| 84 |
query showPaste($id: String!) { |
| 85 |
paste(id: $id) { |
| 86 |
id |
| 87 |
created |
| 88 |
visibility |
| 89 |
files { |
| 90 |
filename |
| 91 |
contents |
| 92 |
} |
| 93 |
user { |
| 94 |
canonicalName |
| 95 |
} |
| 96 |
} |
| 97 |
} |
| 98 |
|
| 99 |
query userWebhooks($cursor: Cursor) { |
| 100 |
userWebhooks(cursor: $cursor) { |
| 101 |
results { |
| 102 |
id |
| 103 |
url |
| 104 |
} |
| 105 |
cursor |
| 106 |
} |
| 107 |
} |