0.0.4 • Published 7 years ago
@resolvr/results-engine v0.0.4
Resolvr Results Engine
The Results Engine parses the output of core and the query-engine into a frontend ready format
Usage
const { ResultsEngine, ReturnType } = require('@resolvr/results-engine');
const engine = new ResultsEngine();
const type = new ReturnType(
ReturnType.TYPES.LIST,
null,
{
parseResults: {} // Parsing from core
}
);
// queryResults is the array returned from the Query Engine
const json = engine.make(type, queryResults);
// json can now be sent back to the front end