Hi,
is there a way to select distinct data from tables;
this are data in my table:
If I select data in this way:
const queryBuilder = Backendless.DataQueryBuilder.create();
queryBuilder.addProperties('Id', 'Name');
var result = Backendless.Data.of('Customers').find(queryBuilder);
the result is:
[
{
"___class": "Customers",
"Id": "1",
"Name": "Jane"
},
{
"___class": "Customers",
"Id": "2",
"Name": "John"
},
{
"___class": "Customers",
"Id": "1",
"Name": "Jane"
}
]
I want only distinct values:
[
{
"___class": "Customers",
"Id": "1",
"Name": "Jane"
},
{
"___class": "Customers",
"Id": "2",
"Name": "John"
}
]
I looked at the documentation, but found nothing.
Thank you,
Elena