forrest
forrest
PPrisma
Created by forrest on 5/16/2024 in #help-and-questions
Can composite type contain a list of another composite type?
i am trying to define a composite type Token as below, which will contain a list of another composite type Chain, is this valid? i don't see any documentation saying if this is valid or not.
type Token {
id String
symbol String
name String
chains Chain[]
}

type Chain {
contractAddress String?
id Int
name String
}
type Token {
id String
symbol String
name String
chains Chain[]
}

type Chain {
contractAddress String?
id Int
name String
}
2 replies
PPrisma
Created by forrest on 5/14/2024 in #help-and-questions
Can composite type contain a list of another composite type?
i am trying to define a composite type Token as below, which will contain a list of another composite type Chain, is this valid? i don't see any documentation saying if this is valid or not.
type Token {
id String
symbol String
name String
chains Chain[]
}

type Chain {
contractAddress String?
id Int
name String
}
type Token {
id String
symbol String
name String
chains Chain[]
}

type Chain {
contractAddress String?
id Int
name String
}
1 replies