didFindObject method

FutureOr<Response> didFindObject(
  1. InstanceType result
)

Executed after a fetch by ID query that found a matching instance.

By default, returns a Response.ok with the encoded instance. The result is the fetched InstanceType. You may override this method to provide some other behavior.

Implementation

FutureOr<Response> didFindObject(InstanceType result) {
  return Response.ok(result);
}