Closed rrmerugu closed 4 years ago
Build more views and components with new GremlinHeadlessComponent.
GremlinHeadlessComponent
import React from "react"; import GremlinHeadlessComponent from "core/base/gremlin-component"; export default class GremlinQueryBox extends GremlinHeadlessComponent { // use makeQuery("g.V().toList()") to query // use processResponse(responses) method to listen to the responses. componentDidMount() { super.componentDidMount(); const _this = this; setTimeout(function () { _this.makeQuery("g.V().limit(5).toList()", false); }, 1000) } processResponse(responses) { console.log("Response is ", responses); } }
Build more views and components with new
GremlinHeadlessComponent
.