Plugins
Other
hasura-allow-list

Plugin Details

Package name@graphql-codegen/hasura-allow-list
Weekly Downloadsdownloads
Versionlicense
Licenselicense
UpdatedAug 8th, 2022

Installation

yarn add -D @graphql-codegen/hasura-allow-list

Generate hasura allow list metadata from graphql files

You can use this plugin to generate an allow list for your hasura project.

This can be useful to keep your allow list and front end code in sync.

Examples

# …
generates:
  path/to/metadata/allow_list.yaml:
    plugins:
      - hasura-allow-list

Config API Reference

collection_name

type: string default: allowed-queries

Choose the collection name to be generated. Defaults to allowed-queries

config_version

type: number (values: 2, 3) default: 3

Target metadata config version. Supported versions are 2 and 3. This is mostly for future proofing, currently has no impact as both versions use the same format. The default value will change in the future if/when newer config versions are released.

Last updated on August 10, 2022