Skip to main content

Misinformation of GraphQl schema metadata

  • November 28, 2019
  • 1 reply
  • 2060 views

Hi,

In order to create graphQL queries dynamically I use the __type schema query in order to retrieve all the fields of the given entity.

Some of the ‘metadata’ about the schema is not correct and fields are not describes as they should be.
For example, when I query on Item entity I get that Subscribers field’s kind is NON_NULL when it should be OBJECT

{
“name”: “subscribers”,
“description”: “The pulses’s subscribers.”,
“deprecationReason”: null,
“type”: {
“name”: null,
“description”: null,
“kind”: “NON_NULL
}
}

The process of building dynamically query becomes much harder because you can’t expect how the field should look like and which fields to ask.

This topic has been closed for replies.

1 reply

dipro
Forum|alt.badge.img
  • Leader
  • December 31, 2019

Hey @avivtzo, thanks for mentioning this! Great catch 🙂 I’ll pass this along to our developers to look into.