var query = new AV.Query('ClassA'); query.equalTo('column1', 'value1'); query.find().then(function(results) { // handle results });
var query = new AV.Query('ClassA'); var classB = AV.Object.createWithoutData('ClassB', 'xxxxxxx'); query.equalTo('pointerColumn', classB); query.find().then(function(results) { // handle results });In this example, the `AV.Query` method is used again to query an object in ClassA. However, this time, it uses the `AV.Object.createWithoutData` method to create a pointer to ClassB. It further filters the query by adding the `equalTo` constraint, where the `pointerColumn` value is equal to the pointer created. Finally, it calls the `find` method to retrieve the results. The package library used in this example is likely to be the `avoscloud-sdk` or `leancloud-storage` package.