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:
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
}
}
}
the infoItem section, which is the new section, is only at one level, and does not appear at the lower nested children
Here you can see there there are values for the new properties in the collection. 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 help with this?