Avux アリャ
Avux アリャ
XXata
Created by Avux アリャ on 4/12/2025 in #help
Confusing Data Structure
So , currently i working on NextJS 15 and using AuthJS when i get a data from xata using @xata.io/client": "^0.30.1 , the result was
{
id: 'rec_cvt761e293clmhh9jajg',
name: 'Hello',
xata_createdat: null,
xata_id: null,
xata_updatedat: null,
xata_version: null,
xata: {
createdAt: 2025-04-12T14:04:53.275Z,
updatedAt: 2025-04-12T14:04:53.275Z,
}
}
{
id: 'rec_cvt761e293clmhh9jajg',
name: 'Hello',
xata_createdat: null,
xata_id: null,
xata_updatedat: null,
xata_version: null,
xata: {
createdAt: 2025-04-12T14:04:53.275Z,
updatedAt: 2025-04-12T14:04:53.275Z,
}
}
when i try to submit a data , it said Error: invalid record: column [xata_id]: column not found when i get a data from xata using @xata.io/client@next , the result was
{
name: 'World',
xata_createdat: 2025-04-12T14:04:34.536Z,
xata_id: 'rec_cvt75sm293clmhh9jai0',
xata_updatedat: 2025-04-12T14:04:34.536Z,
xata_version: 0
}
{
name: 'World',
xata_createdat: 2025-04-12T14:04:34.536Z,
xata_id: 'rec_cvt75sm293clmhh9jai0',
xata_updatedat: 2025-04-12T14:04:34.536Z,
xata_version: 0
}
when i try to submit a data it working fine , but it broke the AuthJS adapter
[auth][error] AdapterError: Read more at https://errors.authjs.dev#adaptererror
[auth][cause]: Error: invalid record: column [user]: type mismatch: expected string
[auth][error] AdapterError: Read more at https://errors.authjs.dev#adaptererror
[auth][cause]: Error: invalid record: column [user]: type mismatch: expected string
Also is there any way for disabling the direct access for postgres ? when i create a database there is no swicth for it and auto enabling it.
6 replies