queryAttachments
FunctionqueryAttachments(requestOptions: IQueryAttachmentsOptions): Promise<IQueryAttachmentsResponse>Query the attachments for a feature service layer. See the REST Documentation for more information.
import { queryAttachments } from '@esri/arcgis-rest-feature-service'
queryAttachments({
url: "http://services.myserver/OrgID/ArcGIS/rest/services/Petroleum/KSPetro/FeatureServer/0",
objectIds: [2, 4],
attachmentTypes: ["image/jpeg"],
returnUrl: true
})
.then(response) // response.attachmentGroupsParameters
| Parameter | Type |
|---|---|
request | IQueryAttachmentsOptions |
Returns
Promise<IQueryAttachmentsResponse>A Promise that will resolve with the query response