An open API service indexing awesome lists of open source software.

https://github.com/remorses/fly-node-api

Type safe client for the Fly.io Graphql API
https://github.com/remorses/fly-node-api

Last synced: 7 months ago
JSON representation

Type safe client for the Fly.io Graphql API

Awesome Lists containing this project

README

          

## Install

```
npm i fly-node-api
```

## Usage

```ts
import 'dotenv/config'
import { createClient } from 'fly-node-api'

const client = createClient({
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
})

async function main() {
const res = await client.query({
app: [
{ name: 'my-app' },
{
secrets: { name: true },
status: true,
},
],
})
console.log(res.app)
}

main()
```