FieldQuery class

Represents a the field filter parameter in a query.

Only the selected fields will be included in the returned json. This is a very useful feature to reduce internet traffic and increase the speed of a query if only party of an entry is relevant.

From the Ditto-API:

Selectable fields:

  • thingId

  • policyId

  • _policy: Specifically selects the policy of the Thing. (The policy is not contained in the returned JSON per default.)

  • attributes: Supports selecting arbitrary sub-fields by using a comma separated list (like attributes/ownedBy/ or attributes/name)

  • definition

  • features: Supports selecting arbitrary fields in features similar to attributes (see also Features documentation for more details)

  • _namespace: Specifically selects the namespace also contained in the thingId

  • _revision: Specifically selects the revision of the Thing. The revision is a counter which is incremented on each modification of a Thing.

  • _modified: Specifically selects the modified timestamp of the Thing in ISO-8601 UTC format. The timestamp is set on each modification of a Thing.

Constructors

FieldQuery(List<String> fields)
Creates a new FieldQuery with the given fields.

Properties

fields List<String>
The path to the specified fields which wild be included in the response.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateString() String
Returns the stored information in this QueryParam ready to use in a request.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited