Graph Traversal/Item Properties

Property Exclusion

Exclude properties from the result of a traversal.

If you want to access all properties except for a few, you can use the exclude operator.

::!{<SchemaFieldNames>}

Example

N::User{
    name: String,
    age: U32,
    email: String,
    posts: U32,
    followers: U32,
    following: U32,
    location: String,
}

Here we are excluding the name, email, and location properties from the result.

QUERY find_users() =>
    users <- N<User>::RANGE(0, 10)
    RETURN users::!{name, email, location}