JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 31
  • Score
    100M100P100Q54406F
  • License MIT

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hasura-gql-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    hasura-gql-client

    npm version

    WIP: Repository is under have development right now :-)

    Typescript based Hasura GQL client.

    • Blazing fast GraphQL
    • ST types
    • No Graphql string mess

    Installation

    yarn add hasura-gql-client

    or

    npm i hasura-gql-client

    Settings

    interface TestUser {
        id: string;
        email: string;
    }
    
    interface Select {
        test_user: TestUser;
    }
    
    const client = new Client<Select>({
        host: "https://yourdomain.com/v1",
        customHeaders: { 'x-hasura-admin-secret': "****" },
        debug: true,
    })
    
    const users = await client.select('test_user', ['id']);