Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Easiest way to add an array of objects? - Drizzle Team
DT
Drizzle Team
•
3y ago
•
7 replies
deved9036
Easiest way to add an array of objects?
Hey
, I am trying to add an array of objects to my schema with postgres
, how can I do this
? there seems to be a pgArray but can
't find a pgObject
export const products
= pgTable
(
"products
"
,
{
id
: serial
(
"id
"
)
.primaryKey
(
)
.unique
(
)
,
description
: text
(
"description
"
)
.notNull
(
)
,
details
: text
(
"details
"
)
.notNull
(
)
,
price
: numeric
(
"price
"
)
.notNull
(
)
,
images
: array
(
pgObject
(
{
title
: text
(
"title
"
)
.notNull
(
)
,
tag
: text
(
"tag
"
)
.notNull
(
)
,
imageUrl
: text
(
"imageUrl
"
)
.notNull
(
)
,
}
)
,
)
,
}
)
;
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Array of Objects
DT
Drizzle Team / help
2y ago
Update with array of objects
DT
Drizzle Team / help
2y ago
Help building queries based on multiple conditions from an array of objects
DT
Drizzle Team / help
2y ago
Getting an object instead of an array.
DT
Drizzle Team / help
2y ago