UNPKG

@envelop/rate-limiter

Version:

This plugins uses [`graphql-rate-limit`](https://github.com/teamplanes/graphql-rate-limit#readme) in order to limit the rate of calling queries and mutations.

13 lines (12 loc) 349 B
export declare const getNoOpCache: () => { set: ({ newTimestamps }: { newTimestamps: number[]; }) => number[]; }; export declare const getWeakMapCache: () => { set: ({ context, fieldIdentity, newTimestamps, }: { context: Record<any, any>; fieldIdentity: string; newTimestamps: number[]; }) => any; };