Fluent builder for constructing QueryFeaturesRequest objects.

Create via QueryBuilder.from(serviceId, layerId) (standalone) or QueryBuilder.for(client, serviceId, layerId) (bound to a client for .run()).

// Standalone — build request object
const req = QueryBuilder.from("myService", 0)
.where("POP > 1000")
.outFields("NAME", "POP")
.limit(100)
.build();

const result = await client.queryFeatures(req);

// Bound — build and execute in one chain
const result = await QueryBuilder.for(client, "myService", 0)
.where("POP > 1000")
.outFields("NAME", "POP")
.limit(100)
.run();

Methods