I am creating an API endpoint that serves as a content Feed that pulls in content according to some rules.
One group of content that I want to pull is articles that have been updated and that have been approved to be included in the feed. My approach for this was to include a boolean field for including it in the feed, and query for the number of revisions.
$firstGroup = $query->andConditionGroup() ->condition('type', ['article', 'video_game'], 'IN') ->condition('status', NodeInterface::PUBLISHED) ->condition('field_include_in_feed', 1) ->condition('revision_uid', '1', '>='); $nids = $query->condition($firstGroup)->condition($secondGroup)->execute();
Based on this page from the documentation, I thought
revision_uid would be a valid field, but I get an error that it is not. Likewise I get an error, if I use
revision as well.
The error is a Drupal
QueryException with the message
'revision_uid' not found.
What is the best way to query for content (with
entityQuery) that has been updated if I can't use the