Console - DICTIONARY GET

Displays the value of the requested key, loaded from the database dictionary.

Syntax

DICTIONARY GET <key>
  • <key> Defines the key you want to access.

Example

  • In a dictionary of U.S. presidents, display the entry for Barack Obama:

    orientdb> DICTIONARY GET obama
    
    -------------------------------------------------------------------------
    Class: Person id: 5:4 v.1
    -------------------------------------------------------------------------
        parent: null
     children : [Person@5:5{parent:Person@5:4,children:null,name:Malia Ann,
                surname:Obama,city:null}, Person@5:6{parent:Person@5:4,
                children:null,name:Natasha,surname:Obama,city:null}]
         name : Barack
      surname : Obama
         city : City@-6:2{name:Honolulu}
    -------------------------------------------------------------------------
    

You can display all keys stored in a database using the DICTIONARY KEYS command. For more information on indexes, see Indexes.

For more information on other commands, see Console Commands.