gatsby-plugin-extract-schema

时间:2021-05-07 01:50:00
【文件属性】:
文件名称:gatsby-plugin-extract-schema
文件大小:341KB
文件格式:ZIP
更新时间:2021-05-07 01:50:00
JavaScript 盖茨比插件提取方案 一个插件,可将您的graphql模式提取到文件中。 您可以使用此文件通过使用来检查对架构的查询。 安装 npm install --save gatsby-plugin-extract-schema 用法 将插件添加到gatsby-config.js module . exports = { plugins : [ "gatsby-plugin-extract-schema" ] } ; 可选配置 自定义文件目标 { resolve : "gatsby-plugin-extract-schema" , options : { dest : ` ${ __dirname } /path/to/schema.json` , } , } , } 生命周期挂钩 通过定义可选的生命周期挂钩,可以更改运行的代码。 它们都是异步函数,如果
【文件预览】:
gatsby-plugin-extract-schema-master
----README.MD(4KB)
----index.js(7B)
----package.json(739B)
----package-lock.json(1.58MB)
----.gitignore(23B)
----gatsby-node.js(1KB)

网友评论