Skip to main content

Duplicate Schema Definition

Erroneous Code Example

This error occurs when you define the same node, edge, or vector type more than once in your schema.
N::User {
    name: String,
}

N::User {
    email: String,
}

Solution

Remove the duplicate definition or rename one of the types.
N::User {
    name: String,
    email: String,
}