@4djs/gql-types

Outputs GraphQL types from a 4d catalog

Usage no npm install needed!

<script type="module">
  import 4djsGqlTypes from 'https://cdn.skypack.dev/@4djs/gql-types';
</script>

README

A simple tool to generate interfaces from the rest API catalog

How to use

You can simply call the binary using npx:

npx @4djs/gql-types http://localhost:8081/rest/\$catalog/\$all

This will print the interfaces into the standard output.

You can also redirect the result to save it into a specific file:

npx @4djs/gql-types http://localhost:8081/rest/\$catalog/\$all > 4d.types.ts