Skip to content

Commit 02fb9fe

Browse files
committed
feat: Add data masking
1 parent 8d12836 commit 02fb9fe

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/runtime/plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export default defineNuxtPlugin((nuxtApp) => {
131131
const cache = new InMemoryCache(clientConfig.inMemoryCacheOptions)
132132

133133
clients[key as ApolloClientKeys] = new ApolloClient({
134+
dataMasking: clientConfig?.dataMasking,
134135
link,
135136
cache,
136137
...(NuxtApollo.clientAwareness && { name: key }),

src/types.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ export type ClientConfig = {
101101
* Configuration for the auth cookie.
102102
*/
103103
cookieAttributes?: CookieAttributes
104+
105+
/**
106+
* Enable data masking for the client.
107+
*/
108+
dataMasking?: boolean
104109
}
105110

106111
export interface NuxtApolloConfig<T = false> {

0 commit comments

Comments
 (0)