Getting error NeonDbError when pushing migration file
Hi all,
So i have a schema that defines custom type JSON objects for my NeonDB database, like so:
And I am trying to use it like so:
However, I am getting an error
NeonDbError: data type json has no default operator class for access method "btree"
So perhaps I am not specifying the custom type of json
correctly, but I could not find any examples on the drizzle website.
I also tried like (commads instead of semi-colons):
But it still lead to the same error.
Any thoughts on how to do this properly?
Thank you!3 Replies
Hello, @Nick Montoya! Is it possible to provide reproduction repo? I couldn't reproduce it on my end. I am using latest version of
drizzle-orm
Hi Solo, i seem have had a unique() on another json property that was causing this error, I got it working without including the unique(), it seems for that you need jsonb
super