### ----------------------------------------------------
### -- Red
### -- Licenses: Artistic-2.0
### -- Authors: Fernando Correa de Oliveira
### -- File: lib/MetamodelX/Red/PreFetch.rakumod
### ----------------------------------------------------
unit role MetamodelX::Red::PreFetch;

has %!pre-fetches;

method pre-fetches(\model) {
  model.^relationships.keys.grep: !*.no-prefetch
}


