Job Schema
TheJobSchema type includes the following fields:
id: Unique identifier for the jobstatus: Current status of the jobsourceID: ID of the associated sourcemappingID: ID of the associated mappingtargetSchemaID: ID of the associated target formatlastRun: Timestamp of the last executionsource: AssociatedSourceSchemaobject, this triggers an additional querymapping: AssociatedMappingSchemaobject, this triggers an additional query to fetchtargetFormat: AssociatedTargetFormatSchemaobject, this triggers an additional query to fetchwebhooks: All associatedWebhookSchemaobjects, this triggers an additional query to fetch
Queries
getJobs
Retrieves all saved jobs.Example:
source, mapping, and target format.
Mutations
saveJob
Saves a new job, associating a source, mapping, and target format.Example:
source: The source to use (can be an existing source ID or a new source request).mapping: The mapping to apply. If no mapping is given, a mapping will be generated based on the source data.targetFormat: The target format to transform the data into. If no target format is given, the default target format will be used.
runJob mutation.
The mutation returns the ID of the newly created job.
deleteJob
Deletes a saved job.Example:
true if the deletion was successful, false otherwise.
runJob
Executes a saved job.Example:
- Fetches data from the associated source
- Applies the specified mapping to the data
- Transforms the result into the target format
true if the job execution was successful, false otherwise.
