Nascent Political Miscreant
Wondering what’s next for npm?Check out our public roadmap! »

easyresttogql

0.3.0 • Public • Published

EasyRESTToGQL · Tests npm version GitHub license PRs Welcome

A package to simple convert your REST API into a GQL API

Installation

Using npm:

$ npm i easyRESTToGQL

In Node.js:

// Load the full build.
const { Server, Fields, Entities} = require('easyRESTToGQL');
const { StringField, IntField } = Fields;
const { Entity } = Entities;
 
const nameField = new StringField("name");
const ageField = new IntField("age");
 
const clientEntity = new Entity("Client", "localhost:3000/clients",[nameField, ageField]);
 
const server = new Server("4000",[clientEntity]);
 
server.start();

For more examples visit the example folder

Versioning

Semantic Versioning

EasyRESTToGQL follows semantic versioning. We release patch versions for critical bugfixes, minor versions for new features or non-essential changes, and major versions for any breaking changes. When we make breaking changes, we also introduce deprecation warnings in a minor version so that our users learn about the upcoming changes and migrate their code in advance.

Every significant change is documented in the changelog file.

Releases

Every two weeks there is a release. If you want to know what are the features we are working, here are the current sprint tasks.

Contributing

Code of Conduct

EasyRESTToGQL has adopted the Contributor Covenant as its Code of Conduct, and we expect project participants to adhere to it. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing Guide

Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to EasyRESTToGQL.

Contributors

Special thanks to contributors

License

EasyRESTToGQL is MIT licensed

Keywords

none

Install

npm i easyresttogql

DownloadsWeekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

120 kB

Total Files

50

Last publish

Collaborators

  • avatar