Alter can be used to perform the following operations, by setting the right fields in the protocol buffer Operation object. - Modify a schema. - Drop predicate. - Drop the database. @param op a protocol buffer Operation object representing the operation being performed.
(Operation op)
| 469 | * @param op a protocol buffer Operation object representing the operation being performed. |
| 470 | */ |
| 471 | public void alter(Operation op) { |
| 472 | Exceptions.withExceptionUnwrapped( |
| 473 | () -> { |
| 474 | asyncClient.alter(op).join(); |
| 475 | }); |
| 476 | } |
| 477 | |
| 478 | /** |
| 479 | * checkVersion can be used to find out the version of the Dgraph instance this client is |