P
Prisma8mo ago
forrest

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
}
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server