0.9.31 • Published 10 months ago
@inverter-network/graphql v0.9.31
Inverter / GraphQL Typesafe / Query / Subscription
GraphQL Typesafe / Query / Subscription for InverterNetwork.
Summary
This package contains < GraphQL Typesafe / Query / Subscription > for InverterNetwork.
Check out the Changelog to see what changed in the last releases.
Install
pnpm add @inverter-network/graphqlUsage
import { Client, query, subscription } from '@inverter-network/graphql'
// By default, the client will use the hardcoded url -> InverterNetwork Production
Client.updateUrl('<OPTIONAL_GRAPHQL_URL>')
const fields = {
Token: {
__args: {
where: {
address: {
_eq: '0x961bB3932A7efAa9aDcc7409e1fea090479E8312',
},
chainId: {
_eq: 1101,
},
},
},
chainId: 1,
address: 1,
name: 1,
decimals: 1,
symbol: 1,
totalSupply: 1,
},
} as const
// Query
const tokens = await query(fields)
// Subscription
const sub = subscription(fields)
sub.addCallback((data) => {
console.log(data)
})License
This package is licensed - see the LICENSE file for details.
0.9.31
10 months ago
0.9.30
10 months ago
0.9.29
10 months ago
0.9.28
10 months ago
0.9.27
10 months ago
0.9.26
10 months ago
0.9.25
10 months ago
0.9.24
10 months ago
0.9.23
10 months ago
0.9.22
10 months ago
0.9.21
10 months ago
0.9.21-alpha.0
10 months ago
0.9.20
10 months ago
0.9.19
10 months ago
0.9.18
11 months ago
0.9.17
11 months ago
0.9.16
11 months ago
0.9.15
11 months ago
0.9.14
11 months ago
0.9.13
11 months ago
0.9.12
11 months ago
0.9.11
11 months ago
0.9.10
11 months ago
0.9.9
11 months ago
0.9.8
11 months ago
0.9.7
11 months ago
0.9.6
11 months ago
0.9.5
11 months ago
0.9.4
11 months ago
0.9.3
11 months ago
0.9.2
11 months ago
0.9.1
11 months ago
0.9.0
12 months ago