executeNamedQuery<T> method
Future<T>
executeNamedQuery<T>(
- QueryName queryName, {
- Map<
String, dynamic> params = const {}, - required IntegrationId integrationId,
Executes the given queryName
with the given params
and returns
a future with the result.
For more information about named queries in Squid, please refer to the documentation at {@link https://docs.squid.cloud/docs/backend/named-queries}.
Implementation
Future<T> executeNamedQuery<T>(QueryName queryName,
{Map<String, dynamic> params = const {},
required IntegrationId integrationId}) {
_validateNotDestructed();
return _namedQueryManager
.executeNamedQueryAndSubscribe<T>(integrationId, queryName, params)
.toFuture();
}