Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ClientCache

import type { ClientCache } from "https://googleapis.deno.dev/v1/firebasedataconnect:v1.ts";

Client caching settings of a connector.

interface ClientCache {
entityIdIncluded?: boolean;
strictValidationEnabled?: boolean;
}

§Properties

§
entityIdIncluded?: boolean
[src]

Optional. A field that, if true, means that responses served by this connector will include entityIds in GraphQL response extensions. This helps the client SDK cache responses in an improved way, known as "normalized caching", if caching is enabled on the client. Each entityId is a stable key based on primary key values. Therefore, this field should only be set to true if the primary keys of accessed tables do not contain sensitive information.

§
strictValidationEnabled?: boolean
[src]

Optional. A field that, if true, enables stricter validation on the connector source code to make sure the operation response shapes are suitable for client-side caching. This can include additional errors and warnings. For example, using the same alias for different fields is disallowed, as it may cause conflicts or confusion with normalized caching. (This field is off by default for compatibility, but enabling it is highly recommended to catch common caching pitfalls.)