Skip To Content
ArcGIS Developer
Dashboard

Sync compatibility notes

    LayerQueries without queryOption

    If a service does not have the syncEnabled property or has a value of false, the older syntax of layerQueries applies, as below.

    Description

    In addition to the layers and geometry parameters, the layerQueries parameter can be used to further define what is replicated. This parameter allows you to set properties on a per-layer or per-table basis. Only the properties for the layers and tables that you want change from the default are required. The properties include the following:

    • where—Defines an attribute query for a layer or table. The default is no where clause.
    • useGeometry—Determines whether or not to apply the geometry for the layer. The default is true. If set to false, features from the layer that intersect the geometry are not added.
    • includeRelated—Determines whether or not to add related rows. The default is true.

    Syntax

    layerQueries={ "<Layer_or_tableID1>" : {"where":"attribute_query", "useGeometry": <true | false>, "includeRelated" : <true | false>}, "<Layer_or_tableID2>: {.}}

    Example

    • layerQueries={"1":{"useGeometry" : false}}
    • layerQueries={"0":{"where": "requires_inspection" = True}, "1":{"useGeometry " : false}}
    • layerQueries={"0":{"useGeometry" : false, "includeRelated" : false}}, "1":{"useGeometry" : false}}