MCPcopy Create free account
hub / github.com/dailydotdev/apps / topPluginsQueryOptions

Function topPluginsQueryOptions

packages/shared/src/graphql/plugins.ts:227–237  ·  view source on GitHub ↗
(first: number)

Source from the content-addressed store, hash-verified

225});
226
227export const topPluginsQueryOptions = (first: number) => ({
228 queryKey: generateQueryKey(RequestKey.Plugins, undefined, 'top', first),
229 queryFn: async (): Promise<Plugin[]> => {
230 const { plugins } = await gqlClient.request<PluginsData>(PLUGINS_QUERY, {
231 first,
232 });
233
234 return plugins.edges.map(({ node }) => node);
235 },
236 staleTime: StaleTime.Default,
237});
238
239export const pluginQueryOptions = (
240 id: string,

Callers 2

PostPluginsWidgetFunction · 0.90
TokenCreatedPluginsFunction · 0.90

Calls 1

generateQueryKeyFunction · 0.90

Tested by

no test coverage detected