0.2.0 • Published 1 year ago
@shitty-scope-name/sourcegraph v0.2.0
sourcegraph.com TypeScript API client
GraphQL client for sourcegraph.com with full TypeScript support
Installation
npm install @shitty-scope-name/sourcegraph
Docs
You can read more about usage in the client docs and Genql docs
Example usage
import { createClient } from '@shitty-scope-name/sourcegraph'
const client = createClient()
// query variables
let after = ''
let before = ''
client
.query({
accessRequests: {
__args: {
after: after,
before: before,
},
nodes: {
additionalInfo: true,
createdAt: true,
email: true,
},
pageInfo: {
endCursor: true,
hasNextPage: true,
hasPreviousPage: true,
},
totalCount: true,
},
})
.then((x) => console.log(JSON.stringify(x, null, 4)))
client
.query({ areExecutorsConfigured: true })
.then((x) => console.log(JSON.stringify(x, null, 4)))
Sponsor
This project is sponsored by Notaku: Create public docs websites from your Notion pages
0.2.0
1 year ago