@shitty-scope-name/wapm-registry
v0.2.0
Published
SDK client for registry.wapm.io GraphQL API
Downloads
1
Maintainers
Readme
registry.wapm.io TypeScript API client
GraphQL client for registry.wapm.io with full TypeScript support
Installation
npm install @shitty-scope-name/wapm-registry
Docs
You can read more about usage in the client docs and Genql docs
Example usage
import { createClient } from '@shitty-scope-name/wapm-registry'
const client = createClient()
// query variables
let size = 3
let input
client
.mutation({
acceptNamespaceCollaboratorInvite: {
__args: {
input: input,
},
clientMutationId: true,
namespaceCollaboratorInvite: {
accepted: {
createdAt: true,
id: true,
},
approvedBy: {
avatar: {
__args: {
size: size,
},
},
},
closedAt: true,
},
},
})
.then((x) => console.log(JSON.stringify(x, null, 4)))
// query variables
let size = 3
let input
client
.mutation({
acceptPackageCollaboratorInvite: {
__args: {
input: input,
},
clientMutationId: true,
packageCollaboratorInvite: {
accepted: {
createdAt: true,
id: true,
},
approvedBy: {
avatar: {
__args: {
size: size,
},
},
},
closedAt: 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