getAssociatedEntitiesQuery

Function

Associated entities are those which have mutually "agreed" to be connected with one another. They require a two-way "connection" between parent/child:

parent: "includes" the child in its association query child: "references" the parent via a typeKeyword of the form ref||

The following returns a query to view an entity's associations with another entity type

Associated entities are those which have mutually "agreed" to be connected with one another. They require a two-way "connection" between parent/child:

parent: "includes" the child in its association query child: "references" the parent via a typeKeyword of the form ref||

The following returns a query to view an entity's associations with another entity type

Parameters

Parameter Type Default Notes
entity Required HubEntity

Hub entity

associationType Required HubEntityType

entity type to query for

context Required IArcGISContext

contextual auth and portal information

Returns

Promise<IQuery>
Property Type Notes
filters IFilter[]

Filters that make up the query

targetEntity EntityType

What entity is this query targeting. This is used internally to ensure we query the correct API

collection Optional WellKnownCollection

An id for a well known collection that the query should use.

properties Optional Record<stringany>

Additional properties. Useful for groupMember queries where we need to send in the groupId to construct the url


Function defined in common/src/associations/getAssociatedEntitiesQuery.ts:26