0.2.0 • Published 1 year ago

@shitty-scope-name/wapm-registry v0.2.0

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

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

Notaku