11// Jest Snapshot v1, https://goo.gl/fbAQLP
22
33exports [` urql graphcache Should correctly name GraphCacheResolvers & GraphCacheOptimisticUpdaters with nonstandard mutationType names 1` ] = `
4- "import { cacheExchange } from '@urql/exchange-graphcache';
5- import { Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
4+ "import { cacheExchange , Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
65
76export type WithTypename<T extends { __typename ?: any } > = Partial<T > & { __typename : NonNullable < T [' __typename' ]> } ;
87
@@ -32,7 +31,7 @@ export type GraphCacheUpdaters = {
3231 Mutation_Root ?: {
3332 toggleTodo?: GraphCacheUpdateResolver<{ toggleTodo: WithTypename <Todo > }, Mutation_RootToggleTodoArgs >
3433 },
35- Subscription ?: {} ,
34+ Subscription ?: object ,
3635 Todo ?: {
3736 id?: GraphCacheUpdateResolver<Maybe <WithTypename <Todo >>, Record <string , never >>,
3837 text?: GraphCacheUpdateResolver<Maybe <WithTypename <Todo >>, Record <string , never >>,
@@ -49,8 +48,7 @@ export type GraphCacheConfig = Parameters<typeof cacheExchange>[0] & {
4948`;
5049
5150exports[`urql graphcache Should correctly output GraphCacheOptimisticUpdaters when there are no mutations 1`] = `
52- "import { cacheExchange } from '@urql/exchange-graphcache';
53- import { Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
51+ "import { cacheExchange , Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
5452
5553export type WithTypename<T extends { __typename ?: any } > = Partial<T > & { __typename : NonNullable < T [' __typename' ]> } ;
5654
@@ -69,14 +67,14 @@ export type GraphCacheResolvers = {
6967 }
7068} ;
7169
72- export type GraphCacheOptimisticUpdaters = { } ;
70+ export type GraphCacheOptimisticUpdaters = object ;
7371
7472export type GraphCacheUpdaters = {
7573 Query_Root ?: {
7674 todos?: GraphCacheUpdateResolver<{ todos: Maybe <Array <WithTypename <Todo >>> }, Record <string , never >>
7775 },
78- Mutation ?: {} ,
79- Subscription ?: {} ,
76+ Mutation ?: object ,
77+ Subscription ?: object ,
8078 Todo ?: {
8179 id?: GraphCacheUpdateResolver<Maybe <WithTypename <Todo >>, Record <string , never >>,
8280 text?: GraphCacheUpdateResolver<Maybe <WithTypename <Todo >>, Record <string , never >>,
@@ -93,8 +91,7 @@ export type GraphCacheConfig = Parameters<typeof cacheExchange>[0] & {
9391`;
9492
9593exports[`urql graphcache Should output the cache-generic correctly (with interfaces) 1`] = `
96- "import { cacheExchange } from '@urql/exchange-graphcache';
97- import { Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
94+ "import { cacheExchange , Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
9895
9996export type WithTypename<T extends { __typename ?: any } > = Partial<T > & { __typename : NonNullable < T [' __typename' ]> } ;
10097
@@ -128,14 +125,14 @@ export type GraphCacheResolvers = {
128125 }
129126} ;
130127
131- export type GraphCacheOptimisticUpdaters = { } ;
128+ export type GraphCacheOptimisticUpdaters = object ;
132129
133130export type GraphCacheUpdaters = {
134131 Query ?: {
135132 schoolBooks?: GraphCacheUpdateResolver<{ schoolBooks: Maybe <Array <WithTypename <Textbook >>> }, Record <string , never >>
136133 },
137- Mutation ?: {} ,
138- Subscription ?: {} ,
134+ Mutation ?: object ,
135+ Subscription ?: object ,
139136 Author ?: {
140137 id?: GraphCacheUpdateResolver<Maybe <WithTypename <Author >>, Record <string , never >>,
141138 name?: GraphCacheUpdateResolver<Maybe <WithTypename <Author >>, Record <string , never >>,
@@ -165,8 +162,7 @@ export type GraphCacheConfig = Parameters<typeof cacheExchange>[0] & {
165162`;
166163
167164exports[`urql graphcache Should output the cache-generic correctly (with typesPrefix and typesSuffix) 1`] = `
168- "import { cacheExchange } from '@urql/exchange-graphcache';
169- import { Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
165+ "import { cacheExchange , Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
170166
171167export type WithTypename<T extends { __typename ?: any } > = Partial<T > & { __typename : NonNullable < T [' __typename' ]> } ;
172168
@@ -212,7 +208,7 @@ export type GraphCacheUpdaters = {
212208 toggleTodosOptionalEntity?: GraphCacheUpdateResolver<{ toggleTodosOptionalEntity: Array <WithTypename <PrefixTodoSuffix >> }, PrefixMutationToggleTodosOptionalEntityArgsSuffix >,
213209 toggleTodosOptional?: GraphCacheUpdateResolver<{ toggleTodosOptional: Maybe <Array <WithTypename <PrefixTodoSuffix >>> }, PrefixMutationToggleTodosOptionalArgsSuffix >
214210 },
215- Subscription ?: {} ,
211+ Subscription ?: object ,
216212 Author ?: {
217213 id?: GraphCacheUpdateResolver<Maybe <WithTypename <PrefixAuthorSuffix >>, Record <string , never >>,
218214 name?: GraphCacheUpdateResolver<Maybe <WithTypename <PrefixAuthorSuffix >>, Record <string , never >>,
@@ -236,8 +232,7 @@ export type GraphCacheConfig = Parameters<typeof cacheExchange>[0] & {
236232`;
237233
238234exports[`urql graphcache Should output the cache-generic correctly (with unions) 1`] = `
239- "import { cacheExchange } from '@urql/exchange-graphcache';
240- import { Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
235+ "import { cacheExchange , Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
241236
242237export type WithTypename<T extends { __typename ?: any } > = Partial<T > & { __typename : NonNullable < T [' __typename' ]> } ;
243238
@@ -273,7 +268,7 @@ export type GraphCacheUpdaters = {
273268 Mutation ?: {
274269 updateMedia?: GraphCacheUpdateResolver<{ updateMedia: Maybe <WithTypename <Media >> }, MutationUpdateMediaArgs >
275270 },
276- Subscription ?: {} ,
271+ Subscription ?: object ,
277272 Book ?: {
278273 id?: GraphCacheUpdateResolver<Maybe <WithTypename <Book >>, Record <string , never >>,
279274 title?: GraphCacheUpdateResolver<Maybe <WithTypename <Book >>, Record <string , never >>,
@@ -295,8 +290,7 @@ export type GraphCacheConfig = Parameters<typeof cacheExchange>[0] & {
295290`;
296291
297292exports[`urql graphcache Should output the cache-generic correctly 1`] = `
298- "import { cacheExchange } from '@urql/exchange-graphcache';
299- import { Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
293+ "import { cacheExchange , Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
300294
301295export type WithTypename<T extends { __typename ?: any } > = Partial<T > & { __typename : NonNullable < T [' __typename' ]> } ;
302296
@@ -342,7 +336,7 @@ export type GraphCacheUpdaters = {
342336 toggleTodosOptionalEntity?: GraphCacheUpdateResolver<{ toggleTodosOptionalEntity: Array <WithTypename <Todo >> }, MutationToggleTodosOptionalEntityArgs >,
343337 toggleTodosOptional?: GraphCacheUpdateResolver<{ toggleTodosOptional: Maybe <Array <WithTypename <Todo >>> }, MutationToggleTodosOptionalArgs >
344338 },
345- Subscription ?: {} ,
339+ Subscription ?: object ,
346340 Author ?: {
347341 id?: GraphCacheUpdateResolver<Maybe <WithTypename <Author >>, Record <string , never >>,
348342 name?: GraphCacheUpdateResolver<Maybe <WithTypename <Author >>, Record <string , never >>,
0 commit comments