33 lines
675 B
TypeScript
33 lines
675 B
TypeScript
|
import { configureWunderGraphOperations } from '@wundergraph/sdk';
|
||
|
import type { OperationsConfiguration } from '../src/lib/.wundergraph/generated/wundergraph.operations';
|
||
|
|
||
|
export default configureWunderGraphOperations<OperationsConfiguration>({
|
||
|
operations: {
|
||
|
defaultConfig: {
|
||
|
authentication: {
|
||
|
required: false,
|
||
|
},
|
||
|
},
|
||
|
queries: (config) => ({
|
||
|
...config,
|
||
|
caching: {
|
||
|
enable: false,
|
||
|
staleWhileRevalidate: 60,
|
||
|
maxAge: 60,
|
||
|
public: true,
|
||
|
},
|
||
|
liveQuery: {
|
||
|
enable: true,
|
||
|
pollingIntervalSeconds: 1,
|
||
|
},
|
||
|
}),
|
||
|
mutations: (config) => ({
|
||
|
...config,
|
||
|
}),
|
||
|
subscriptions: (config) => ({
|
||
|
...config,
|
||
|
}),
|
||
|
custom: {},
|
||
|
},
|
||
|
});
|