diff --git a/dbAccess/corpus.go b/dbAccess/corpus.go index 9a499a0..6a757d5 100644 --- a/dbAccess/corpus.go +++ b/dbAccess/corpus.go @@ -84,6 +84,22 @@ func CreateCorpusIndexes() error { func GetTiplocFromCrs(crs string) (tiploc string, err error) { // Return TIPLOC from CRS code + + // PIPELINE: + /* + bson.A{ + bson.D{{"$match", bson.D{{"3ALPHA", "BTH"}}}}, + bson.D{ + {"$project", + bson.D{ + {"TIPLOC", 1}, + {"STANOX", 1}, + {"_id", 0}, + }, + }, + }, + } + */ err = fmt.Errorf("not yet written") return "", err }