-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Description
Renaming connection types, doesn't seem to fully work.
Type(ChatObject.self, as: "Chat") {
Field("messages", at: ChatObject.messages, as: Connection<MessageObject>.self) {
Argument("first", at: \.first)
Argument("after", at: \.after)
Argument("last", at: \.last)
Argument("before", at: \.before)
}
}
Type(MessageObject.self, as: "Message") {
Field("id", at: \.id)
Field("text", at: \.text)
}
ConnectionType(MessageObject.self, as: "Message")
I get the following error:
Fatal error: 'try!' expression unexpectedly raised an error: Type "MessageObjectConnection" was referenced but not defined.
When I don't rename the ConnectionType, then the schema builds, but I end up with MessageObjectConnection instead of MessageConnection.
If I don't include the Chat type, then the schema builds with the correct MessageConnection name.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels