The publication state argument gives errors on queries for collection types that have the draf system turned off. It seems a false error, since the parameter is actually used in a subquery (in the example for the cases), but not on the main employees query.
Thus I have made some changes to not using an argument, but just directly pusing the publicationState value.
The publication state argument gives errors on queries for collection types that have the draf system turned off. It seems a false error, since the parameter is actually used in a subquery (in the example for the cases), but not on the main employees query.
Thus I have made some changes to not using an argument, but just directly pusing the publicationState value.