Package Exports
- n-rules
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (n-rules) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Node-Rules
Beginnings of a rule engine for NodeJS
- Your rules should be a first class citizen of your API
- This is being built with some ideas taken from GraphQLExamples
import nRules from 'n-rules';
const types = `
@Secure(LoggedIn)
userTask checkItOut(create: Chicken) {
}
serverTask updateSomeStuff: Banana {
}
`;
const resolvers = {
checkItOut: () => "winning"
}
/*
Just declare your task and resolvers.
userTasks will be turned into RESTful endpoints
*/
nRules(types, resolvers);