GraphiQL autocomplete shows wrong hints when used in aliased field.
This problem doesn't occurs in version 0.7.0.
My code look like this
import graphqlHTTP from 'express-graphql';
import {
GraphQLSchema,
GraphQLObjectType,
GraphQLString
} from 'graphql';
const Schema = new GraphQLSchema({
query: new GraphQLObjectType({
name: 'Query',
fields: {
article: {
type: new GraphQLObjectType({
name: 'Article',
fields: {
title: { type: GraphQLString },
content: { type: GraphQLString }
}
}),
resolve() {
return {
title: 'Lorem ipsum',
content: 'Sed ut perspiciatis'
};
},
},
},
}),
});
app.use('/graphql', graphqlHTTP({
schema: Schema,
graphiql: true
}));
graphiql


"express-graphql": "0.6.1",
"graphql": "0.8.2",
graphiql is served from CDN: http://cdn.jsdelivr.net/graphiql/0.8.0/graphiql.min.js
Thanks for the report @Everettss - this is a known issue and we're working to resolve it as soon as possible.
Most helpful comment
Thanks for the report @Everettss - this is a known issue and we're working to resolve it as soon as possible.