graphqlify:将JavaScript对象转换为graphql SDL

时间:2024-05-31 10:19:07
【文件属性】:

文件名称:graphqlify:将JavaScript对象转换为graphql SDL

文件大小:3KB

文件格式:ZIP

更新时间:2024-05-31 10:19:07

JavaScript

@ tomzer0 / graphqlify 将javascript对象转换为具有类型的对象,然后转换为graphql字符串。 安装 npm i @tomzer0/graphqlify 用法 const { graphqlify , stringify , combine , random } = require ( '@tomzer0/graphqlify' ) ; const restResult1 = { ... } ; const restResult2 = { ... } ; // not necessary const generalResult = combine ( graphqlify ( restResult1 ) , graphqlify ( restResult2 ) , ) ; console . log ( stringify ( generalR


【文件预览】:
graphqlify-master
----package.json(342B)
----index.js(5KB)
----readme.md(1KB)

网友评论