Query
query Snippets {
snippets {
edges {
cursor
node {
id
name
text
markdown
path
isDeleted
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"snippets": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"text": "string",
"markdown": "string",
"path": "string",
"isDeleted": true
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Queries
snippets
Returns a paginated list of all snippets in the workspace. Use this to sync or display the full snippet library. Supports standard forward and backward cursor pagination. Requires the snippet:read permission.
QUERY
snippets(first: Int, after: String, last: Int, before: String): SnippetConnection!Arguments
first
Int
after
String
last
Int
before
String
Returns
edges
[SnippetEdge!]!
pageInfo
Query
query Snippets {
snippets {
edges {
cursor
node {
id
name
text
markdown
path
isDeleted
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"snippets": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"text": "string",
"markdown": "string",
"path": "string",
"isDeleted": true
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Was this page helpful?

