如何从角度应用程序访问超级分类帐编写器查询?

ste*_*ess 5 http hyperledger-composer angular

我在hyperledger composer app的query.qry文件中定义了一个查询:

query selectPersonsByHobby {
  description: "Select all persons with a certain hobby."
  statement:
      SELECT org.comp.myapp.Person
          WHERE (passTime CONTAINS (name == _$targetHobby ))
}
Run Code Online (Sandbox Code Playgroud)

这是模型文件的相关部分:

participant Person identified by id {
  o String id
  o String firstName
  o String lastName
  o String email
  o Interest[] passTime
}

concept Interest {
  o String name
  o String description
}
Run Code Online (Sandbox Code Playgroud)

如何从我的角度应用程序访问查询并传递参数;?

以下是正确的吗?:

return this.httpClient.get(`http://localhost:3000/api/queries/selectPersonsByHobby`, {_$targetHobby: "Football"});
Run Code Online (Sandbox Code Playgroud)