Graphql-playground: Autocomplete does not include types of input fields

Created on 11 Oct 2017  路  6Comments  路  Source: graphql/graphql-playground

This makes it difficult to determine which fields are required, and what their type is.

For example, in this situation, String! should be shown:

image

areautocompletion bu2-confirmed statupr-welcome

All 6 comments

You mean in front of every dropdown item?

No, this is what should be shown:

name (selected)
moviesIds
movies
---
String! <leave 'Self descriptive.' out>

String!, because name is a required String.

Aha! Can I implement it?

@morajabi go for it! It could be a css issue, you may start checking if it is in the dom. In the QueryEditor.tsx you can turn off the automatic closing of the codemirror for debugging.

Hey @timsuchanek! I see something like this in the GraphCMS's API explorer. Is that what we want?
screen shot 2017-10-17 at 11 18 16 am
If I've got it right, we only need to add "!" for required fields, right?

You don't need to add this manually, this type information is already available in the schema. For some reasons, the type is not shown for input fields currently, though.

Was this page helpful?
0 / 5 - 0 ratings