【发布时间】:2021-01-08 02:55:16
【问题描述】:
我正在做这个项目:https://github.com/mirumee/saleor 这个项目使用graphql,我想知道如何在这个文件夹中生成模式:https://github.com/mirumee/saleor/tree/master/saleor/graphql 有没有办法自动生成模式?谢谢
【问题讨论】:
我正在做这个项目:https://github.com/mirumee/saleor 这个项目使用graphql,我想知道如何在这个文件夹中生成模式:https://github.com/mirumee/saleor/tree/master/saleor/graphql 有没有办法自动生成模式?谢谢
【问题讨论】:
使用graphql_schema管理命令作为
python manage.py graphql_schema --schema tutorial.quickstart.schema --out <b>schema.graphql</b>
请注意,--out 文件必须具有扩展名 .graphql 才能生成 GraphQL SDL 表示。
【讨论】:
TypeScript 中使用它