There was an error while loading. Please reload this page.
1 parent 8d12836 commit 02fb9feCopy full SHA for 02fb9fe
2 files changed
src/runtime/plugin.ts
@@ -131,6 +131,7 @@ export default defineNuxtPlugin((nuxtApp) => {
131
const cache = new InMemoryCache(clientConfig.inMemoryCacheOptions)
132
133
clients[key as ApolloClientKeys] = new ApolloClient({
134
+ dataMasking: clientConfig?.dataMasking,
135
link,
136
cache,
137
...(NuxtApollo.clientAwareness && { name: key }),
src/types.d.ts
@@ -101,6 +101,11 @@ export type ClientConfig = {
101
* Configuration for the auth cookie.
102
*/
103
cookieAttributes?: CookieAttributes
104
+
105
+ /**
106
+ * Enable data masking for the client.
107
+ */
108
+ dataMasking?: boolean
109
}
110
111
export interface NuxtApolloConfig<T = false> {
0 commit comments