Releases: n1ru4l/graphql-live-query
Releases · n1ru4l/graphql-live-query
@n1ru4l/[email protected]
Minor Changes
-
e893ecc: Add support for the
@live(throttle:)
directive argument for negotiating a throttle between the server and the client. This is useful for preventing the server to spam the client for data that might be updating too frequently.The
InMemoryLiveQueryStore
now accepts avalidateThrottleValue
option that can be used to validate the incoming throttle value sent from clients.const store = new InMemoryLiveQueryStore({ validateThrottleValue: (value /* value as sent by client */) => { // value can either be null/undefined or a number // returning a string from this function will treat the provided value as invalid // and send an error back to the client. if (value == null || value > 1000) { return "Must provide throttle value in the range from 0-1000"; } // returning a number will replace the user sent throttle value if (value === 420) { return 690; } // returning null or undefined will result in no throttle being used. return null; } });
-
8e14fd2: improve ESM support by using export fields and .mjs file extensions
Patch Changes
- Updated dependencies [e893ecc]
- Updated dependencies [8e14fd2]
- @n1ru4l/[email protected]
@n1ru4l/[email protected]
Minor Changes
- e893ecc: Add
throttle
argument for the@live
directive for negotiating a throttle between the server and the client. This is useful for preventing the server to spam the client for data that might be updating too frequently. - 8e14fd2: improve ESM support by using export fields and .mjs file extensions
@n1ru4l/[email protected]
Minor Changes
- 8e14fd2: improve ESM support by using export fields and .mjs file extensions
@n1ru4l/[email protected]
Minor Changes
- 8e14fd2: improve ESM support by using export fields and .mjs file extensions
Patch Changes
- Updated dependencies [8e14fd2]
- @n1ru4l/[email protected]
@n1ru4l/[email protected]
Minor Changes
- 8e14fd2: improve ESM support by using export fields and .mjs file extensions
Patch Changes
- Updated dependencies [8e14fd2]
- @n1ru4l/[email protected]
@n1ru4l/[email protected]
Minor Changes
- a002527: omit empty patches from being sent to clients
@n1ru4l/[email protected]
Minor Changes
- a002527: omit empty patches from being sent to clients
Patch Changes
- Updated dependencies [a002527]
- @n1ru4l/[email protected]
@n1ru4l/[email protected]
Minor Changes
- a002527: omit empty patches from being sent to clients
Patch Changes
- Updated dependencies [a002527]
- @n1ru4l/[email protected]
@n1ru4l/[email protected]
Patch Changes
- 791ed67: add missing dependency on
@n1ru4l/graphql-live-query-patch
@n1ru4l/[email protected]
Patch Changes
- e15005f: refactor logic for extracting id schema coordinates