# @orchard/ows-features

`@orchard/ows-features` provides an out-of-the-box GraphQL connector for interfacing with [`ows-features`](https://github.com/theorchard/ows-features). It takes all the hassle out of figuring out how to interface with the microservice, and provides a drop-in solution for querying the service for features in GraphQL services.

## Getting Started

```
yarn add @orchard/ows-features
```

## Usage

In your Apollo server configuration, you can add `OwsFeatures` to the `dataSources` as follows:

```js
import OwsFeatures from '@orchard/ows-features';
import config from './config';

...

const serverConfig = {
  schema,
  dataSources: () => ({
    owsFeatures: new OwsFeatures(config)
  })
};
```

## TODO

- Document `getFeatures` method
- Document `hasFeature` method
- Document (probably deprecate and remove?) `hasSplitFeature` method