Skip to content

Return all languages for a string #2141

@lazharichir

Description

@lazharichir

I believe this is not yet supported - could you add a feature so that I could request a string predicate to return all the @lang it has.

So far, we can query for particular languages using the @en:. or @. or else. But the idea here is to return all existing languages for this predicate.

An example of query syntax could be:

{
    query(func: eq(topic.label@en, "Graph database")) {
        topic.label@_all_
    }
}

The returned data could either be flattened like it is now, or with an array of paired "lang": "value" :

{
    "query": {
        "topic.label@en": "Graph database",
        "topic.label@fr": "Base de donnee graphique",
        "topic.label@pl": "Blah blah blah"
    }
}

{
    "query": {
        "topic.label": [
            "en": "Graph database",
            "fr": "Base de donnee graphique",
            "pl": "Blah blah blah"
        ]
    }
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions