What I want to do
I’m trying to add two new types to the DQL Schema.
What I did
In Ratel, I clicked on “Schema >> Bulk Edit”, then pasted this Schema text:
mixed_med_name: string .
type MixedMed {
mixed_med_name
}
mixed_med: [MixedMed] .
type MedicationOrder {
mixed_med
}
But when I click on “Apply Schema”, I get the error message:
Could not alter schema: line 7 column 12: Undefined Type
.
Any ideas how to fix this?
Dgraph metadata
dgraph version
Dgraph version : v21.12.0
Dgraph codename : zion
Dgraph SHA-256 : 078c75df9fa1057447c8c8afc10ea57cb0a29dfb22f9e61d8c334882b4b4eb37
Commit SHA-1 : d62ed5f15
Commit timestamp : 2021-12-02 21:20:09 +0530
Branch : HEAD
Go version : go1.17.3
jemalloc enabled : true
For Dgraph official documentation, visit https://dgraph.io/docs.
For discussions about Dgraph , visit http://discuss.dgraph.io.
For fully-managed Dgraph Cloud , visit Products – Dgraph | GraphQL Cloud Platform.
Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2021 Dgraph Labs, Inc.