Puzzling null values returned from new property with updated schema

A specific object/json/graphql combo in our setup has worked on production for more than a year. I have added some more properties to this object in Mongodb json collection and updated the schema, added data, which i can see in the collection, yet graphql queries only show the new property (which is an array) as null. I have tried the application graphql (nextjs), Postman and the mongodb website tools to query app services, but the new property is always null in the returned json. Am i missing something?

Here is the original query:

query {
	nav {
		_id
		key
		pageId
		children {
			alternateurl
			contentType
			key
			naame
			pageId
			pageLevel
			showonnav
			showonsitemap
			title
			url
			children .... etc
		}
	}
}

Here is the updated query with the new array object “infoItem”:

query {
	nav {
		_id
		key
		pageId
		children {
			alternateurl
			contentType
			key
			naame
			pageId
			pageLevel
			showonnav
			showonsitemap
			title
			url
			infoItem {
				itemImageId
				itemLinkObjectId
				itemLinkText
				itemLinkType
				itemLinkUrl
				itemText
				itemTitle
			}
			children .... etc
		}
	}
}

Here in the MongoDB collection you can see there are values for the new properties. The schema has been updated to suit the new props (by the “generate” tool)

image

Here is a screengrab of the data returned from Postman - with the new property “infoItem” present, but with a null value.

image

Can anyone shed any light on this? Why doesn’t the query pull in the data?

Hi @James_Houston,

Did you find a solution?
I’ve got almost the same issue but in my case I have something like this:

"infoItem" [ {
	"itemImageId": null,
	"itemLinkObjectId": null,
	"itemLinkText": null,
	"itemLinkType": null,
	"itemLinkUrl": null,
	"itemText": null,
	"itemTitle": null
}]

No luck so far - if i dont get one soon ill have to change from an array to a series of individual properties. There are (will be) only two items, but our next developer wanted it as an array

I Changed properties from an array to a set of 12 individual properties, updated the schema, yet all the values come through as null in the web interface:

This is the data in the collection:

image