[CORL-149] Persisted Queries (#2445)

* feat: enable persisted queries on the client

* fix: use `id` inside websocket message

* feat: initial server support for PQ

* feat: deeper server support

* feat: abstracted persisted query replacing logic
This commit is contained in:
Vinh
2019-08-15 21:03:32 +00:00
committed by Wyatt Johnson
parent 635e740fc0
commit 43b6a2cdcd
30 changed files with 1268 additions and 465 deletions
+13
View File
@@ -295,4 +295,17 @@ export enum ERROR_CODES {
* someone now allowed when it is disabled on the tenant level.
*/
LIVE_UPDATES_DISABLED = "LIVE_UPDATES_DISABLED",
/**
* PERSISTED_QUERY_NOT_FOUND is returned when a query is executed specifying a
* persisted query that can not be found.
*/
PERSISTED_QUERY_NOT_FOUND = "PERSISTED_QUERY_NOT_FOUND",
/**
* RAW_QUERY_NOT_AUTHORIZED is returned when a query is executed that is not a
* persisted query when the server has configured such queries are required by
* all non-admin users.
*/
RAW_QUERY_NOT_AUTHORIZED = "RAW_QUERY_NOT_AUTHORIZED",
}