How to use cruddl - 3 common examples

To help you get started, we’ve selected a few cruddl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AEB-labs / cruddl / examples / playground / src / index.js View on Github external
this.fetch(params, mockSchema).then(() => {
          if (mockDB.queryTree) {
            const aql = getAQLQuery(mockDB.queryTree);
            const str = ansi2html(aql.toColoredString()).replace(/\u001b/g, ''); // ansi2html does not remove the escape chars
            document.getElementById('log-view').innerHTML = 'The last query would have used this AQL:\n\n' + str;
          }
        });
      }
github AEB-labs / cruddl / examples / playground / src / index.js View on Github external
getProject() {
    return new Project([
      {
        name: 'schema.graphqls',
        body: this.state.schemaSource
      }, {
        name: 'permission-profiles.json',
        body: permissionProfilesSource
      }
    ]);
  }
github AEB-labs / cruddl / examples / playground / src / index.js View on Github external
constructor() {
    super();
    this.state = {
      schemaSource: initialSource,
      query: initialQuery
    };
    this.db = new InMemoryAdapter();
  }

cruddl

[![npm version](https://badge.fury.io/js/cruddl.svg)](https://npmjs.org/cruddl) [![Build Status](https://github.com/AEB-labs/cruddl/workflows/CI/badge.svg)](https://github.com/AEB-labs/cruddl/actions?query=branch%3Amain) [![Package Quality](https://npm.pa

MIT
Latest version published 3 months ago

Package Health Score

81 / 100
Full package analysis

Similar packages