brainCloud Product Updates logo
Back to Homepage Subscribe to Updates

Product Updates

See the latest features, improvements, and product updates

Labels

  • All Posts
  • release
  • Announcement
  • Improvement
  • Fix
  • blog

Jump to Month

  • June 2025
  • March 2025
  • January 2025
  • November 2024
  • September 2024
  • May 2024
  • February 2024
  • November 2023
  • September 2023
  • July 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • June 2021
  • May 2021
  • March 2021
  • November 2020
  • September 2020
  • July 2020
  • April 2020
  • February 2020
  • December 2019
  • November 2019
  • September 2019
  • June 2019
  • May 2019
  • February 2019
  • December 2018
  • October 2018
  • July 2018
  • March 2018
  • January 2018
  • December 2017
  • October 2017
  • July 2017
  • June 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • October 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • June 2014
  • May 2014
Changelog byAnnounceKit

Create yours, for free!

Announcement
yesterday

Migration to MongoDB 8.0 - changes to be aware of!

brainCloud BaaS will be upgraded to MongoDB 8.0 on Monday, July 7th, starting at 8 p.m. Eastern. This rolling upgrade may take up to 6 hours to complete. All API and Portal services will be fully available during the upgrade; the portal will NOT be disabled.

[Full disclosure: It will take longer than usual because we are first upgrading to MongoDB 7.0, and then immediately upgrading to MongoDB 8.0.]

Note that all brainCloud Private Instances will be upgraded in the weeks before the end of July 2025.



Compatibility

brainCloud 5.7 has been tested to be fully compatible with MongoDB 8.0.



Important Change (READ THIS!)

MongoDB 8.0 contains an Important Change that brainCloud developers must be aware of.

Starting in MongoDB 8.0, comparisons to null in equality match expressions don't match undefined values.

Consider the following table:

Records
MongoDB 6
find( { name: null } )
MongoDB 8
find( { name: null } )
{ _id: 1, name: null }
✅
✅
{ _id: 2, name: undefined }
✅
❌
{ _id:3, name: [ "Gabriel", undefined ] }
✅
❌
{ _id:4, names: [ "Alice", "Charu" ] }
✅
✅

In MongoDB 6, a query for { "name": null } would return all 4 records, as per these conditions:

  • The name field is null (_id: 1)
  • The name field is undefined or contains an undefined array element (_id: 2 and _id: 3)
  • The name field does not exist (_id: 4)

But in MongoDB 8, the query for { "name": null } only returns 2 of the records:

  • The name field is null or contains a null array element (_id: 1)
  • The name field does not exist (_id: 4)

Note that this change in query behaviour also affects $eq, $in, and $lookup operations.

For full details on MongoDB compatibility changes:

  • MongoDB 7 - https://www.mongodb.com/docs/manual/release-notes/7.0-compatibility/
  • MongoDB 8 - https://www.mongodb.com/docs/manual/release-notes/8.0-compatibility/




brainCloud Customer Impact

This change only affects brainCloud's list and paging-style calls (which accept custom query JSON) - and ONLY apply if the JSON data itself somehow had undefined values -- which would be pretty unusual.

The affected calls include:

  • Custom Entity - GetEntityPage(), SysGetEntityPage()
  • Entity - GetList(), GetListCount(), GetPage()
  • Global Entity - GetList(), GetListCount(), GetPage(), GetSystemEntityList() GetSystemEntityListCount(), GetSystemEntityPage()
  • Group - ListGroupsPage(), GetRandomGroupsMatching(), ReadGroupEntitiesPage(), SysGetRandomGroupsMatching(), SysListGroupsPage(), SysReadGroupEntitiesPage()
  • Item Catalog - GetCatalogItemsPage(), SysGetCatalogItemsPage()
  • Leaderboard - SysGetLeaderboardConfigsPage()
  • Messaging - GetMessagesPage(), SysGetMessagesPage()
  • RedemptionCode - SysGetCodeTypePage()
  • User - SysGetPage()
  • User Items - GetUserItemsPage()

So - this is ONLY an issue if:

  • Your app has "undefined" values in its JSON entities
  • AND it is querying on those fields with "undefined" values
  • AND it is specifically querying those fields for "null" and expects "undefined" values to be included with the query results.


Take action!

If you do feel that this issue may affect your app, reach out to us in support with the following information:

  • appId
  • category of entity affected (eg, User, Global, Custom, etc).
  • entityType field
  • field name <- name of the field with undefined values

We may be able to help you prepare the data so that "undefined" fields are replaced with "null" values to ensure that queries continue to work.