-
-
Notifications
You must be signed in to change notification settings - Fork 206
How can I write this kind of query? #176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @alparslantopbas QueryBuilder queryBuilder = QueryBuilder<ParseObject>(ParseObject('tblOrders'));
queryBuilder.includeObject(['productId']);
ParseResponse parseResponse = await queryBuilder.query();
if (parseResponse.success && parseResponse.results != null) {
final ParseObject tblOrders = parseResponse.results[0] as ParseObject;
final ParseObject tblProducts = tblOrders.get<ParseObject>('productId');
print(tblOrders.get<String>('objectId'));
print(tblOrders.get<String>('Quantity'));
print(tblProducts.get<String>('objectId'));
print(tblProducts.get<String>('ProductName'));
} |
Hi @rodrigosmarques, This doesn't work:
|
Hi @alparslantopbas |
Hi @RodrigoSMarques, |
Hi,
How can I write this kind of query? I think named is "relational query".
For example, there are two tables: tblOrders and tblProducts
Like these:
tblOrders
objectId
productId (Pointer)
Date
Quantity
tblProducts
objectId
ProductName
I want to this kind of result:
tblOrders.objectId tblOrders.productId tblProducts.ProductName tblOrders.Date tblOrders.Quantity
So,
var apiResponse = await ParseObject('tblOrders').getAll();
but, how can I add "ProductName" into query?
Like T-SQL View structure?
The text was updated successfully, but these errors were encountered: