graasp / graasp-query-client

GNU Affero General Public License v3.0
1 stars 0 forks source link

Graasp Query Client

React Query package to consume the Graasp API.

Installation

Run the following to install the package in your project:

yarn add github:graasp/graasp-query-client.git

The package exposes the following properties:

configureQueryClient returns the following properties:

import { configureQueryClient } from '@graasp/query-client';

const prop = configureQueryClient({ API_HOST });

Development

Run yarn to install this package's dependencies

Testing

Execute the following to run the tests in your project

yarn test

or

yarn test:watch