Skip to content

schema query filtering #3518

@barum

Description

@barum

Experience Report

Note: Feature requests are judged based on user experience and modeled on Go Experience Reports. These reports should focus on the problems: they should not focus on and need not propose solutions.

What you wanted to do

There should be a way to query the schema and have it return specific graphs and their predicts

example:
if I create the following:

W.X.Y.Z.Name: string .
W.X.Y.Z.phone: string .
W.X.Y.Z.email: string .

W.X.Y.A.Name: string .
W.X.Y.A.Address1: string .
W.X.Y.A.zipcode: string .

I should be able to say give me all the predicates associated with ...

{
  getPred(schema: has(W.X.Y.A.*)) {
    uid
   expand(_all_) {
       expand(_all_)
    } 
  }
}

or

{
  getPred(schema: has(W.X.Y.Z.*)) {
    uid
   expand(_all_) {
       expand(_all_)
    } 
  }
}

here if we think of an enterprise:

W = group
X = application
Y = database
Z = table
predicate = column

in an org, thats how things can be separated and identified without having to install 10000 instances of dgraph.

Metadata

Metadata

Labels

area/schemaIssues related to the schema language and capabilities.kind/featureSomething completely new we should consider.priority/P2Somehow important but would not block a release.status/acceptedWe accept to investigate/work on it.status/needs-specsIssues that require further specification before implementation.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions