@linear/sdk
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "@linear/sdk", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Linear API SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -39,2 +39,16 @@ # @linear/sdk | ||
If you want to be more specific on return values with your queries, you can also pass GraphQL query with the query call: | ||
```js | ||
// Get project id for an issue | ||
const issue = await linear.getIssue(issueId, "{ id project { id } }"); | ||
console.log(issue.project.id); | ||
// Fetch project states with associated projects ids | ||
const states = await linear.client.query.projectStates( | ||
{}, | ||
`{ id name project { id } }` | ||
); | ||
``` | ||
## Documentation | ||
@@ -41,0 +55,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
297870
60