2.0.0 • Published 9 months ago

ahau-graphql-client v2.0.0

Weekly downloads
-
License
AGPL-3.0
Repository
gitlab
Last release
9 months ago

ahau-graphql-client

Example Usage

const AhauClient = require('ahau-graphql-client')

const client = new AhauClient(uri, opts)

// client.query(...)

API

new AhauClient(uri, opts) => client

where:

  • uri String is the http endpoint of your graphql server
    • if Number, it's assumed to be a port, and uri will be set to http://localhost:${port}/graphql
  • opts Object (optional) lets you set:
    • opts.possibleTypes Object for resolving fragments
    • opts.fetch Function for providing a custom fetch function. This is required when not in the browser
    • opts.apolloClient Object for setting or over-riding other apollo client options

and returns client - an @apollo/client instance

2.0.0

9 months ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

2 years ago

1.0.0

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago