Salesforce Fact #698 | Aggregate functions in graphql

We can use aggregate functions as well with graphql wire adapter. 

In this example, we are getting the related Contact and Opportunity count for an account using the 'totalCount' variable.

Reference: https://developer.salesforce.com/docs/platform/graphql/guide/aggregate-examples.html

Attached is the screenshot.



Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow