0.9.31 • Published 7 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/graphql
Usage
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
7 months ago
0.9.30
7 months ago
0.9.29
7 months ago
0.9.28
7 months ago
0.9.27
7 months ago
0.9.26
7 months ago
0.9.25
7 months ago
0.9.24
7 months ago
0.9.23
7 months ago
0.9.22
8 months ago
0.9.21
8 months ago
0.9.21-alpha.0
8 months ago
0.9.20
8 months ago
0.9.19
8 months ago
0.9.18
8 months ago
0.9.17
8 months ago
0.9.16
8 months ago
0.9.15
8 months ago
0.9.14
8 months ago
0.9.13
8 months ago
0.9.12
8 months ago
0.9.11
9 months ago
0.9.10
9 months ago
0.9.9
9 months ago
0.9.8
9 months ago
0.9.7
9 months ago
0.9.6
9 months ago
0.9.5
9 months ago
0.9.4
9 months ago
0.9.3
9 months ago
0.9.2
9 months ago
0.9.1
9 months ago
0.9.0
9 months ago