genql icon indicating copy to clipboard operation
genql copied to clipboard

Boolean values not picked up by everything or scalar:true in subscription calls

Open shiftlabs1 opened this issue 9 months ago • 5 comments

@remorses , there may have been a change i am not aware of, although i went through the documentation . but recently , i am having to specify each boolean property and setting to true in a subscriptions, even after ...everything as that is now the only way they get pulled into the final result. is this by design ?

let { query, variables } = generateSubscriptionOp({
				employer: {
					__args: { id: appData?.orgId },
					...everything,
					employerLocations: { ...everything },
					employees: {
						...everything,
						isActive:true,
                         isApproved:true,
....

without explicit isActive:true and isApproved:true , those entries get omitted from the result

shiftlabs1 avatar May 08 '24 10:05 shiftlabs1