Open oneilsh opened 1 year ago
When using multiple categories, it looks like only the first category is considered. For example, example https://api-v3.monarchinitiative.org/v3/api/association/all?category=biolink%3ACausalGeneTo[…]&entity=MONDO%3A0009061&direct=true&limit=200&offset=0 returns one results (the causal gene), while https://api-v3.monarchinitiative.org/v3/api/association/all?category=biolink%3ADiseaseToPhe[…]&entity=MONDO%3A0009061&direct=true&limit=200&offset=0 returns 62, all phenotype associations.
I see it, it's generating a query that looks like:
'category:biolink\\:CausalGeneToDiseaseAssociation OR biolink\\:DiseaseToPhenotypicFeatureAssociation'
When using multiple categories, it looks like only the first category is considered. For example, example https://api-v3.monarchinitiative.org/v3/api/association/all?category=biolink%3ACausalGeneTo[…]&entity=MONDO%3A0009061&direct=true&limit=200&offset=0 returns one results (the causal gene), while https://api-v3.monarchinitiative.org/v3/api/association/all?category=biolink%3ADiseaseToPhe[…]&entity=MONDO%3A0009061&direct=true&limit=200&offset=0 returns 62, all phenotype associations.