private boolean scopeContainsInstances ( GraqlCompute query , ConceptId ... ids ) { for ( ConceptId id : ids ) { Thing thing = tx . getConcept ( id ) ; if ( thing == null || ! scopeTypeLabels ( query ) . contains ( thing . type ( ) . label ( ) ) ) return false ; } return true ; }
Helper method to check if concept instances exist in the query scope