Unable to alter schema

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 Overview - Dgraph.
For discussions about Dgraph , visit http://discuss.hypermode.com.
For fully-managed Dgraph Cloud , visit Overview - Dgraph.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2021 Dgraph Labs, Inc.

In the DQL schema, instead of mixed_med: [MixedMed] ., you’ll do:

mixed_med: [uid] .

It is up to your code to make sure the uid you connect with is of type MixedMed. At the DQL level, Dgraph doesn’t type check the uid for you.

Ah! Thank you so much, @RickSalmon , for the fast reply!
I apologize for the rookie mistake. I frequently confuse myself with the GraphQL syntax vs DQL.