open-index/open-npm huggingface dataset:
npm package: @simtlix/gnx
Description: [![npm version](https://badge.fury.io/js/%40simtlix%2Fgnx.svg)](https://badge.fury.io/js/%40simtlix%2Fgnx)
Author: Simtlix
Latest version: 2.4.7

[![npm version](https://badge.fury.io/js/%40simtlix%2Fgnx.svg)](https://badge.fury.io/js/%40simtlix%2Fgnx)

# How to
## Install
```bash
npm install @simtlix/gnx --save
```

To use this lib:
* Define your mongoose models
* Define your GraphQL types
* Register models and types using `connect` function for **non embedded** types and `addNoEndpointType` function for **embedded** ones
* Create the GraphQL schema using `createSchema` function

## Test
On this project root directory
`npm link`

On the test project root directory
`npm link @simtlix/gnx`

Run test project with *preserve-symlinks* flag. E.g.:
`node --preserve-symlinks app.js`

# Example
There is a sample of an app using this lib at [gnx-sample](https://github.com/simtlix/gnx-sample)