const Films = new GraphQLObjectType({
name: 'films',
fields: () => ({
id:{
type: GraphQLString
},
name: {
type: GraphQLString,
},
uniq_id: {
type: GraphQLString,
})
I want to give an alias name to the name field and fetch it with that name.
How can I do that? Please suggest............