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)
Here is a screengrab of the data returned from Postman - with the new property “infoItem” present, but with a null value.
Can anyone shed any light on this? Why doesn’t the query pull in the data?