是否可以从上传到Apollo引擎的模式中重新创建'schema.graphql'文件?
在拥有Apollo引擎的模式后,是否可以重新创建最初用于推送模式的schema.graphql是否可以从上传到Apollo引擎的模式中重新创建'schema.graphql'文件?,graphql,apollo,Graphql,Apollo,在拥有Apollo引擎的模式后,是否可以重新创建最初用于推送模式的schema.graphql 似乎我能得到的最好的模式是JSON版本,使用获得。您可以使用核心库将任何模式内省结果转换为SDL: const { buildClientSchema, printSchema } = require('graphql') const introspectionResult = require('./schema.json') const schema = buildClientSchema(int
似乎我能得到的最好的模式是JSON版本,使用获得。您可以使用核心库将任何模式内省结果转换为SDL:
const { buildClientSchema, printSchema } = require('graphql')
const introspectionResult = require('./schema.json')
const schema = buildClientSchema(introspectionResult)
const sdl = printSchema(schema)
Apollo文章解释了所有三种graphql表示格式: