Industrial
12/04/2018, 9:12 AMtype OHLCV @model {
id: ID! @unique
marketBase: String!
marketQuote: String!
period: String!
timestamp: DateTime!
open: Float!
high: Float!
low: Float!
close: Float!
volume: Float
}
I am importing this data from an external API and I am having troubles with ID. I would like the timestamp to be the primary key and I don't want an ID because I always have a timestamp, only do time based queries on this data and I want to have an upsertMany
where I can just throw many of these in a query and update all of them.