如何在graphql中为架构字段赋予别名

时间:2019-02-12 07:44:02

标签: graphql graphql-js express-graphql github-graphql

const Films = new GraphQLObjectType({
  name: 'films',


  fields: () => ({
    id:{
        type: GraphQLString
      },
      name: {
        type: GraphQLString,

      },
      uniq_id: {
        type: GraphQLString,
    })

我想在名称字段中使用别名,然后使用该名称获取它。

我该怎么做?请建议............

0 个答案:

没有答案
相关问题