More caching

pull/75/head
Nam Chu Hoai 6 months ago committed by GitHub
parent fdf356eb9f
commit 37794a4555
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/features/messages/queries/build.ts

@ -107,7 +107,7 @@ export function buildMessageSearchQuery(
}`, }`,
); );
const query = `query ($search: bytea, $originChains: [bigint!], $destinationChains: [bigint!], $startTime: timestamp, $endTime: timestamp) { const query = `query ($search: bytea, $originChains: [bigint!], $destinationChains: [bigint!], $startTime: timestamp, $endTime: timestamp) @cached(ttl: 5) {
${queries.join('\n')} ${queries.join('\n')}
}`; }`;
return { query, variables }; return { query, variables };

Loading…
Cancel
Save