All Projects → aaronhayes → hasura-sdk

aaronhayes / hasura-sdk

Licence: MIT license
Hasura Schema & Metadata Typescript SDK

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to hasura-sdk

hasura-metadata-patcher
CLI tool to patch Hasura metadata json file. Helps to organize complex CI/CD flows through different environments.
Stars: ✭ 14 (-33.33%)
Mutual labels:  metadata, hasura
Ts3admin.class
The ts3admin.class is a powerful api for communication with Teamspeak 3 Servers from your website! Your creativity knows no bounds!
Stars: ✭ 103 (+390.48%)
Mutual labels:  query, admin
metaschema
Schema definition and validation 💡
Stars: ✭ 25 (+19.05%)
Mutual labels:  metadata, schema
Specs
Technical specifications and guidelines for implementing Frictionless Data.
Stars: ✭ 403 (+1819.05%)
Mutual labels:  metadata, schema
Leaflet.annotate
A Leaflet plugin integrating schema.org to markup items in your geographic web map machine readable.
Stars: ✭ 5 (-76.19%)
Mutual labels:  metadata, schema
Schema Microdata Examples
Some examples of HTML markup using Schema.org microdata
Stars: ✭ 58 (+176.19%)
Mutual labels:  metadata, schema
Schemacrawler
Free database schema discovery and comprehension tool
Stars: ✭ 1,021 (+4761.9%)
Mutual labels:  metadata, schema
Codemeta
Minimal metadata schemas for science software and code, in JSON-LD
Stars: ✭ 218 (+938.1%)
Mutual labels:  metadata, schema
felicity
Javascript object constructors and sample data based on Joi schema.
Stars: ✭ 107 (+409.52%)
Mutual labels:  schema
data-profiling
a set of scripts to pull meta data and data profiling metrics from relational database systems
Stars: ✭ 57 (+171.43%)
Mutual labels:  metadata
aarbac
An Automated Role Based Access Control .NET framework with T-SQL Query Parser which automatically parse select, insert, update, delete queries based on the logged in user role
Stars: ✭ 18 (-14.29%)
Mutual labels:  query
islandora vagrant
Islandora testing and development environment
Stars: ✭ 36 (+71.43%)
Mutual labels:  metadata
YouTube-MA
💾 YouTube video metadata archiver written in Golang
Stars: ✭ 17 (-19.05%)
Mutual labels:  metadata
Gridify
Easy and optimized way to apply Filtering, Sorting, and Pagination using text-based data.
Stars: ✭ 372 (+1671.43%)
Mutual labels:  query
magento custom reports example
An example module about the basic of how to create a custom report in Magento
Stars: ✭ 31 (+47.62%)
Mutual labels:  admin
hbase-meta-repair
Repair hbase metadata table from hdfs.
Stars: ✭ 36 (+71.43%)
Mutual labels:  metadata
substrate-graph
a compact graph indexer stack for parity substrate, polkadot, kusama
Stars: ✭ 28 (+33.33%)
Mutual labels:  hasura
godmt
Tool that can parse Go files into an abstract syntax tree and translate it to several programming languages.
Stars: ✭ 42 (+100%)
Mutual labels:  schema
DigitalOceanApp
Admin Console for Digital Ocean
Stars: ✭ 55 (+161.9%)
Mutual labels:  admin
mongodb-schema
Infer a probabilistic schema for a MongoDB collection.
Stars: ✭ 106 (+404.76%)
Mutual labels:  schema

Hasura SDK

Hasura Schema and Metadata Node SDK

npm version license: MIT code style: prettier


Hasura Schema/Metadata API SDK. Written in TypeScript!

  • 100% in TypeScript
  • 🏋️ Uses Axios under the hood

Installation

yarn

  • yarn add @aaronhayes/hasura-sdk

npm

  • npm install @aaronhayes/hasura-sdk

Usage

import Hasura from '@aaronhayes/hasura-sdk`;

// Note: just the base url - don't add /v1/graphql!
const HASURA_GRAPHQL_ENDPOINT = 'http://localhost:8080';

// Hint: use process.env.HASURA_GRAPHQL_ADMIN_SECRET
const HASURA_GRAPHQL_ADMIN_SECRET = 'yousecret';

const hasura = new Hasura({
    endpoint: HASURA_GRAPHQL_ENDPOINT,
    adminSecret: HASURA_GRAPHQL_ADMIN_SECRET
});

// Using Async/Await Functions
try {
    const resp = await hasura.createCronTrigger({
        name: 'newcronjob',
        schedule: '* * * * *', // every minute
        webhook: '{{EVENT_BASE_URL}}/cron',
        payload: {
            hello: "world"
        },
        comment: 'test cron job every minute'
    });
} catch (error) {
    // handle error
}

// Using Promises
hasura.createCronTrigger({
    name: 'newcronjob',
    schedule: '* * * * *',
    webhook: '{{EVENT_BASE_URL}}/cron',
    payload: {
        hello: "world"
    },
    comment: 'test cron job every minute'
}).then(data => {
    // axios response
}).catch(error => {
    // handle error
});

Schema/Metadata API References

Supported APIs

We currently only support a small range of Hasura APIs. Be assured we working on adding more - if you need something be sure to create an issue!

API Support
Run SQL Yes
Tables/Views Yes
Custom SQL Functions No
Relationships No
Computed Fields No
Permissions No
Event Triggers Yes
Scheduled Triggers Yes
Remote Schemas No
Query Collections No
Custom Types No
Actions No
Manage Metadata No

Give us a star!

Every star helps build a little more

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].