Can you create a new DataObjectQuery with a specified id?

I have:

const doq = new DataObjectQuery(query);
doq.name = name;
doq.id = UUIDUtils.generateUUID();
dataObjectQueryService.upsert(doq);

Hi @Nancy.L.Snyder,

I would be happy to help, but first could you please tell me what version of LEAF you are using? Specifically, what version of @leaf-framework/core?

Hey @dustin.teel, I have this same question. I am on 3.5.5 of @leaf-framework/core.

Hi Jacob,

I’ve done some research, and it looks like in LEAF 3.5, it is not possible to set a custom ID on a DataObjectQuery. This is possible starting in the LEAF 3.7, when a DataObject Backed implementation of the DataObjectQueryService was introduced. In that version and newer versions, it is possible to set a custom ID on a DataObjectQuery if you are using the new DataObject backed implementation.