Linear GraphQL Patterns
Installation
SKILL.md
Linear GraphQL Patterns
Reference: https://studio.apollographql.com/public/Linear-API/variant/current/schema/reference
Connection pattern (cursor pagination)
Every list query in Linear returns a Connection type:
{
issues(first: 50, after: $cursor, filter: {...}, orderBy: updatedAt) {
pageInfo { hasNextPage endCursor }
nodes { id identifier title state { name } }
}
}
Always select pageInfo { hasNextPage endCursor } for cursors. Use first: 50-100 typically; max 250.