I'm attempting to add created by and an edited by relationships on each of my nodes. My first attempt looked like this:
type Created @relation(name: "CREATED_BY"){
from: User
to: Tract, Well, SWD, Operator
date: Date
}
Which of course doesn't work because of the multiple types. Is it possible to do something like this in order to create relationships to many different types of nodes or do I need to set this individually for each type of node I'll have to make relationships to? i.e.
type Created @relation(name: "CREATED_BY"){
from: User
to: Tract
date: Date
}
type Created @relation(name: "CREATED_BY"){
from: User
to: SWD
date: Date
}
etc. for every type of node in my graph?