0.2.4 • Published 1 year ago
opvious-graph v0.2.4
Opvious GraphQL API types
npm i opvious-graph
This package contains auto-generated types for Opvious' underlying GraphQL API.
Consider also using the higher level SDK exported by
opvious
.
Quickstart
You'll need an Opvious API access token to call SDK methods. You can generate one at https://hub.opvious.io/authorizations.
import {GraphQLClient} from 'graphql-request';
import {getSdk} from 'opvious-graph';
// Underlying generic GraphQL client.
const client = new GraphQLClient('https://api.opvious.io/graphql', {
headers: {authorization: process.env.OPVIOUS_TOKEN},
});
// Typesafe GraphQL SDK.
const sdk = getSdk(
<R, V>(query: string, vars: V) => client.rawRequest<R, V>(query, vars)
);
0.1.30
2 years ago
0.1.31
2 years ago
0.1.32
2 years ago
0.1.33
2 years ago
0.1.34
2 years ago
0.1.35
2 years ago
0.1.36
2 years ago
0.1.37
2 years ago
0.1.27
2 years ago
0.1.28
2 years ago
0.1.29
2 years ago
0.1.41
2 years ago
0.1.42
2 years ago
0.1.43
2 years ago
0.1.21
2 years ago
0.1.44
2 years ago
0.1.22
2 years ago
0.1.23
2 years ago
0.1.24
2 years ago
0.1.26
2 years ago
0.1.40
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.38
2 years ago
0.1.39
2 years ago
0.2.2
2 years ago
0.2.4
1 year ago
0.1.20
2 years ago
0.1.19
2 years ago
0.1.18
2 years ago
0.1.17
2 years ago
0.1.16
2 years ago
0.1.15
2 years ago
0.1.14
2 years ago
0.1.13
2 years ago
0.1.12
2 years ago
0.1.11
2 years ago
0.1.10
2 years ago
0.1.9
2 years ago
0.1.7
2 years ago