Files
wasmer/lib/registry/README.md
Christoph Herzog b4b8d8be9f docs(registry): Add minimal README for the registry
Also contains instructions for updating the schema and formatting
GraphQL files.
2023-02-28 16:42:35 +00:00

25 lines
547 B
Markdown

# wasmer-registry
This crate provides integration with the Wasmer package registry GraphQL API.
## Development
### Updating the GraphQL Schema
The GraphQL API schema used for generating queries and mutations is located at
`./graphql/schema.graphql`.
To update it to a deployed version of the backend, run:
```bash
npx get-graphql-schema https://registry.wapm.dev/graphql > graphql/schema.graphql
```
### Formatting GraphQL Files
To format the GraphQL query and mutation files, run:
```bash
npx prettier --write ./graphql/**/*.graphql
```