The GNJ API
Last updated
Was this helpful?
Last updated
Was this helpful?
You can List, Create, Update and Delete any models.
A few custom mutations are also provided for convenience:
If you use the CRUD query/mutations you will only be able to modify the models without using the full force of GNJ.
acquireJob is where the main logic is made. This mutation will mark the first available job as running and assign it to a workerId if given.
You are free to make your own acquire method using the CRUD query/mutations but keep in mind that using API calls might result in transactional problems. If you want to make sure that your custom acquire mutation is perfectly sequential, .