hasura / graphql-engine

Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
https://hasura.io
Apache License 2.0
31.14k stars 2.76k forks source link

As a manual editor of metadata I would like to have access to have metadata schema #5504

Open dmitri-trofimov opened 4 years ago

dmitri-trofimov commented 4 years ago

As a manual editor of metadata files such as tables.yaml (full list described here: https://hasura.io/docs/1.0/graphql/manual/migrations/reference/metadata-format.html) I would like to be able to download schema files and use them in some automatic schema validator application.

Sometimes the number of spaces gets messed up and there is no way to find out about that until I make an attempt to actually apply the metadata. Also, if we have the schema file, there will be intellisence available when editing the YAML files.

GavinRay97 commented 4 years ago

Hey @Dmitri1337 :wave:

There are JSON Schemas available for Metadata that you can use with the VS Code YAML extension. https://github.com/hasura/graphql-engine/pull/5452

Instructions for adding intellisense to metadata .yaml files is here :smiley: https://github.com/GavinRay97/graphql-engine/tree/feature/add-metadata-types-and-generator/metadata-types#metadata-ide-type-checking-integration