dgraph icon indicating copy to clipboard operation
dgraph copied to clipboard

Get a list of edges for a datastore

Open peternavr opened this issue 9 years ago • 5 comments

When uploading a datastore, we might not know all the edges. Would it be possible to get a list of edges in some sort of "describe tables" fashion?

peternavr avatar Feb 10 '17 04:02 peternavr

Do you mean a list of predicates, or all data normalized. If you mean a list of predicates, we're already thinking of doing that.

manishrjain avatar Feb 10 '17 06:02 manishrjain

Yeah a list of predicates is what I mean. When using existing datasets it would be very helpful.

peternavr avatar Feb 10 '17 06:02 peternavr

Just a heads up, we use an endpoint to get the list of predicates from the dynamic schema for autocompletion in the UI. Is the idea to get the list of predicates from /query endpoint?

pawanrawal avatar Mar 01 '17 00:03 pawanrawal

Yes, we will get list of predicates from /query endpoint.

janardhan1993 avatar Mar 01 '17 03:03 janardhan1993

You can get a list of predicates now by sending the following to /query endpoint

schema { }

janardhan1993 avatar Mar 21 '17 07:03 janardhan1993