Datastore release notes

Keep up-to-date with the latest features and fixes available below in the latest release notes for Datastore. You can also access the release notes for earlier Datastore releases during:

2.3.0 release notes

Released: 8th of February, 2021

Updates:

  • Improved filtering to support array properties

JS SDK Array filtering examples

Student document course array contains ALL given course(s):

datastore.collection('students')
.where('courses', 'contains', 'course-a').get();

datastore.collection('students')
.where('courses', 'contains', ['course-a']).get();

datastore.collection('students')
.where('courses', 'contains', ['course-a','course-b']).get();

Student document course array DOES NOT contain ALL given course(s):

datastore.collection('students')
.where('courses', 'not-contains', 'course-a').get();

datastore.collection('students')
.where('courses', 'not-contains', ['course-a']).get();

datastore.collection('students')
.where('courses', 'not-contains', ['course-a','course-b']).get();

Student document course array contains ANY of the given course(s):

datastore.collection('students')
.where('courses', 'contains-any', 'course-a').get();

datastore.collection('students')
.where('courses', 'contains-any', ['course-a']).get();

datastore.collection('students')
.where('courses', 'contains-any', ['course-a','course-b']).get();

Student document course array DOES NOT contain ANY given course(s):

datastore.collection('students')
.where('courses', 'not-contains-any', 'course-a').get();

datastore.collection('students')
.where('courses', 'not-contains-any', ['course-a']).get();

datastore.collection('students')
.where('courses', 'not-contains-any', ['course-a','course-b']).get();

© 2015- Squiz Pty Ltd