Private EventProtected AfterProtected AfterProtected AfterProtected ArrayProtected ArrayOptional contextUser: UserInfoProtected BeforeProtected BeforeProtected BeforeProtected CheckCreates a new query with the provided attributes. This mutation is restricted to system users only.
CreateQuerySystemUserInput containing all the query attributes
Application context containing user information
CreateQueryResultType with success status and query data
Protected CreateDeletes a query by ID. This mutation is restricted to system users only.
The ID of the query to delete
Delete options controlling action execution
Application context containing user information
DeleteQueryResultType with success status and deleted query data
Protected DeleteProtected EmitProtected FilterFilters encrypted field values before sending to the API client.
For each encrypted field in the entity:
Name of the entity
The data object containing field values
User context for encryption operations
The filtered data object
Protected GetProtected GetProtected ListenProtected MapMaps field names to their GraphQL-safe CodeNames and handles encryption for API responses.
For encrypted fields coming from raw SQL queries (not entity objects):
The entity name
The data object with field values
Optional contextUser: UserInfoOptional user context for decryption (required for encrypted fields)
The processed data object
Protected RunOptimized RunViewGenericInternal implementation with:
Protected RunOptimized implementation that:
Protected TestThis routine compares the OldValues property in the input object to the values in the DB that we just loaded. If there are differences, we need to check to see if the client is trying to update any of those fields (e.g. overlap). If there is overlap, we throw an error. If there is no overlap, we can proceed with the update even if the DB Values and the ClientOldValues are not 100% the same, so long as there is no overlap in the specific FIELDS that are different.
ASSUMES: input object has an OldValues___ property that is an array of Key/Value pairs that represent the old values of the record that the client is trying to update.
Updates an existing query with the provided attributes. This mutation is restricted to system users only.
UpdateQuerySystemUserInput containing the query ID and fields to update
Application context containing user information
UpdateQueryResultType with success status and updated query data including related entities
Protected UpdateProtected createProtected createProtected createProtected findPrivate findFinds a category by name and parent ID using RunView. Bypasses metadata cache to ensure we get the latest data from database.
Name of the category to find
Parent category ID (null for root level)
User context for database operations
The matching category entity or null if not found
Private findFinds an existing query by name and category ID using RunView. Bypasses metadata cache to ensure we get the latest data from database.
Database provider
Name of the query to find
Category ID (can be null)
User context for database operations
The matching query info or null if not found
Private findFinds or creates a category hierarchy based on the provided path. Path format: "Parent/Child/Grandchild" - case insensitive lookup and creation.
Slash-separated category path
User context for operations
The ID of the final category in the path
Protected getProtected packageSPParamProtected safe
Filters encrypted fields for an array of data objects