David Marr
04/09/2022, 4:14 PM{ data, includes: { media, users } } -- the includes object includes data that may be referenced in data.
The challenge is that I'm trying to create entities in the db that reference each other but don't exist yet. For example, I want to create tweets that has a media relation, but the media needs to be created first. Media also has the related tweets as part of its model. Since the tweets aren't created yet, until the media is created this presents a problem. What would be the best approach here?David Marr
04/09/2022, 4:59 PMtweet.upsert I get an error:
Unknown arg `author` in update.author for type TweetUncheckedUpdateInput. Did you mean `authorId`? Available args:
type TweetUncheckedUpdateInput {
authorId?: String | StringFieldUpdateOperationsInput
createdAt?: DateTime | DateTimeFieldUpdateOperationsInput
entities?: Json | Json | Null
media?: MediaUncheckedUpdateManyWithoutTweetsInput
mediaKeys?: TweetUpdatemediaKeysInput | List<String>
publicMetrics?: Json | Json
text?: String | StringFieldUpdateOperationsInput
type?: String | NullableStringFieldUpdateOperationsInput | Null
}David Marr
04/09/2022, 5:01 PMDavid Marr
04/09/2022, 5:03 PMNurul
04/12/2022, 6:32 AM