I want to include relationships of particular asset in custom queries written in queries.qryfile:
Models
User
o String id
o String name
o Integer age
Account
id
account_type
--> User owner
queries.qry
query selectAccountByType {
description: "Select all accounts based on type"
statement:
SELECT com.rohitkhatri.bank.Account WHERE (account_type==_$account_type)
}
Now, when I fetch the accounts, it should include the user relationship.
This is what I have tried, composer-rest-server:
/queries/selectAccountByType?account_type=saving&filter={"include":"resolve"}
It returns the following error:
{'status_code': 500, 'message': 'Invalid or extraneous parameter filter has been specified'}
Can someone help me out with this?